Skip to content

Commit

Permalink
moving JLS convergence study to its rightful place; merging declarati…
Browse files Browse the repository at this point in the history
…ve and tridirectional initiatives under the MBGF dir
  • Loading branch information
grammarware committed May 17, 2012
1 parent 64923c9 commit b3c0576
Show file tree
Hide file tree
Showing 189 changed files with 23 additions and 34 deletions.
File renamed without changes.
@@ -1,20 +1,11 @@
tools = ../../../shared/tools
tools = ../../../../shared/tools
validator = ${tools}/validate

build:

test:
# make xbgfs
${tools}/lci java.lcf architecture

# xbgfs:
# exbgf2xbgf exbgf/unite-read1.exbgf xbgf/unite-read1.xbgf
# exbgf2xbgf exbgf/unite-read2.exbgf xbgf/unite-read2.xbgf
# exbgf2xbgf exbgf/unite-read3.exbgf xbgf/unite-read3.xbgf
# exbgf2xbgf exbgf/deyaccify-read2.exbgf xbgf/deyaccify-read2.xbgf
# exbgf2xbgf exbgf/deyaccify-read3.exbgf xbgf/deyaccify-read3.xbgf
# exbgf2xbgf exbgf/inlineStatements.exbgf xbgf/inlineStatements.xbgf
#
check:
${validator} lcf java.lcf
ls -1 xbgf/*.xbgf | xargs -n1 ${validator} xbgf
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -2,11 +2,11 @@
<lcf:configuration xmlns:lcf="http://planet-sl.org/lcf">
<shortcut>
<name>slps</name>
<expansion>../../..</expansion>
<expansion>../../../..</expansion>
</shortcut>
<shortcut>
<name>grammars</name>
<expansion>../../grammars</expansion>
<expansion>../../../grammars</expansion>
</shortcut>
<shortcut>
<name>tools</name>
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions topics/convergence/mbgf/fl/.gitignore
@@ -0,0 +1,2 @@
*.xbgf
*.bgf
@@ -1,37 +1,36 @@
tools = ../../../shared/tools
tools = ../../../../shared/tools
validator = ${tools}/validate

d:
./mbgf2xbgf.py test.mbgf sdf dcg test.2to1.xbgf
../mbgf2xbgf.py fl.mbgf sdf dcg test.2to1.xbgf
xbgf test.2to1.xbgf bgf/sdf.bgf bgf/sdf.2.bgf
gdts bgf/sdf.2.bgf bgf/dcg.bgf

tst:
./m2 test.mbgf sdf rsc
test:
./m2 fl.mbgf sdf rsc

go:
./mbgf2xbgf.py test.mbgf 3 2 test.3to2.xbgf
../mbgf2xbgf.py fl.mbgf 3 2 test.3to2.xbgf
xbgf test.3to2.xbgf bgf/rascal.bgf bgf/rascal.2.bgf
gdts bgf/rascal.2.bgf bgf/sdf.bgf
./mbgf2xbgf.py test.mbgf 1 2 test.1to2.xbgf
../mbgf2xbgf.py fl.mbgf 1 2 test.1to2.xbgf
xbgf test.1to2.xbgf bgf/dcg.bgf bgf/dcg.2.bgf
gdts bgf/dcg.2.bgf bgf/sdf.bgf

t:
./mbgf2xbgf.py test.mbgf 1 3 test.res.xbgf
../mbgf2xbgf.py fl.mbgf 1 3 test.res.xbgf
xbgf2xbnf test.res.xbgf

try:
xsltproc --stringparam in 1 --stringparam out 2 ~/projects/slps/shared/xsl/mbgf2xbgf.xslt test.mbgf > test.1to2.xbgf
xsltproc --stringparam in 1 --stringparam out 2 ~/projects/slps/shared/xsl/mbgf2xbgf.xslt fl.mbgf > test.1to2.xbgf
xbgf test.1to2.xbgf bgf/dcg.bgf bgf/dcg.2.bgf
gdts bgf/dcg.2.bgf bgf/rascal.bgf
xsltproc --stringparam in 3 --stringparam out 2 ~/projects/slps/shared/xsl/mbgf2xbgf.xslt test.mbgf > test.1to2.xbgf
xsltproc --stringparam in 3 --stringparam out 2 ~/projects/slps/shared/xsl/mbgf2xbgf.xslt fl.mbgf > test.1to2.xbgf
xbgf test.1to2.xbgf bgf/dcg.bgf bgf/dcg.2.bgf

build:

test:
${tools}/lci fl.lcf architecture
cp ../../xbgf/fl/snapshot/*.bgf snapshot/
cp ../../xbgf/fl/snapshot/*.bgf bgf/

check:
${validator} lcf fl.lcf
Expand All @@ -41,9 +40,6 @@ check:
clean:
rm -f *~
rm -f codesamples/* xmlsamples/* bgf/*
rm -f xbgf/stripTerminals.xbgf xbgf/stripSelectors.xbgf
rm -f xbgf/rename-om.xbgf xbgf/rename-sdf.xbgf xbgf/rename-jaxb.xbgf xbgf/rename-xsd.xbgf xbgf/rename-model.xbgf
rm -f xbgf/reroot-lower.xbgf xbgf/reroot-upper.xbgf
rm -rf bin obj
rm -f *.user *.suo
rm -f architecture*
Expand Down
File renamed without changes.
File renamed without changes.
Expand Up @@ -2,7 +2,7 @@

# m1 file.mbgf one two
# $0 $1 $2 $3
./mbgf2xbgf.py $1 $2 $3 tmp.xbgf
../mbgf2xbgf.py $1 $2 $3 tmp.xbgf
xbgf tmp.xbgf `xpath $1 'mbgf:sequence/sources/src[@name="'$2'"]/text()' 2> /dev/null` tmp1.bgf
gdt tmp1.bgf `xpath $1 'mbgf:sequence/sources/src[@name="'$3'"]/text()' 2> /dev/null` || exit -1
rm tmp.xbgf tmp1.bgf
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions topics/convergence/tri/.gitignore

This file was deleted.

File renamed without changes.
@@ -1,12 +1,12 @@
validator = ../../../shared/tools/validate
validator = ../../../../shared/tools/validate

all:
make clean
make test
make check

test:
../../../shared/tools/lci bnf.lcf architecture
../../lci/lci.py bnf.lcf architecture

check:
${validator} lcf bnf.lcf
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions topics/convergence/xbgf/ebnf/bgf/.gitignore
@@ -0,0 +1 @@
*.bgf
File renamed without changes.
Expand Up @@ -2,7 +2,7 @@
<lcf:configuration xmlns:lcf="http://planet-sl.org/lcf">
<shortcut>
<name>slps</name>
<expansion>../../..</expansion>
<expansion>../../../..</expansion>
</shortcut>
<shortcut>
<name>schemata</name>
Expand Down Expand Up @@ -42,7 +42,7 @@
<source>
<name>ebnf-bgf</name>
<grammar>
<extraction>cp ../../grammars/metasyntax/ebnf-bgf/grammar.bgf</extraction>
<extraction>cp ../../../grammars/metasyntax/ebnf-bgf/grammar.bgf</extraction>
</grammar>
</source>
<!-- <source>
Expand Down
1 change: 1 addition & 0 deletions topics/convergence/xbgf/ebnf/snapshot/.gitignore
@@ -0,0 +1 @@
*.bgf
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b3c0576

Please sign in to comment.