Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unified makefiles for Ada, Eiffel and Modula extraction, some DSL sym…
…bols renamed for clarity git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@1079 ab42f6e0-554d-0410-b580-99e487e6eeb2
- Loading branch information
1 parent
62b4d6e
commit eeee422
Showing
33 changed files
with
313 additions
and
164 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
topics/grammars/Makefile.include → topics/grammars/Makefile.grammar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
extract: | ||
cat ready.lst | xargs -n1 -I _ make _.extract | ||
|
||
%.extract: | ||
cd $* && make extract | ||
|
||
diff: | ||
cat ready.lst | xargs -n1 -I _ make _.diff | ||
|
||
%.diff: | ||
make $*.extract | ||
gdt $*.bgf $*/grammar.bgf || exit -1 | ||
|
||
save: | ||
cat ready.lst | xargs -n1 -I _ make _.save | ||
|
||
%.save: | ||
make $*.extract | ||
cp $*/grammar.bgf $*.bgf | ||
|
||
clean: | ||
cat ready.lst | xargs -n1 -I _ make _.clean | ||
|
||
%.clean: | ||
cd $* && make clean | ||
|
||
test: | ||
ls -1 *.bgf */*.bgf | xargs -n1 ../../../shared/tools/validate bgf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1 @@ | ||
extract: | ||
cd kempe && make extract | ||
cd kellogg && make extract | ||
cd laemmel-verhoef && make extract | ||
cd lncs-2219 && make extract | ||
cd lncs-4348 && make extract | ||
|
||
clean: | ||
cd kempe && make clean | ||
cd kellogg && make clean | ||
cd laemmel-verhoef && make clean | ||
cd lncs-2219 && make clean | ||
cd lncs-4348 && make clean | ||
|
||
test: | ||
cd kempe && make test | ||
cd kellogg && make test | ||
cd laemmel-verhoef && make test | ||
cd lncs-2219 && make test | ||
cd lncs-4348 && make test | ||
|
||
diff: | ||
make kempe.diff | ||
make kellogg.diff | ||
make laemmel-verhoef.diff | ||
make lncs-2219.diff | ||
make lncs-4348.diff | ||
|
||
%.diff: | ||
cd $* && make extract | ||
../../../shared/tools/gdts $*/ada.bgf $*.bgf || exit -1 | ||
include ../Makefile.language |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
all: | ||
|
||
extract: | ||
../../../extraction/antlr/antlrpp.py ada.rsc.g ada.pp.g | ||
java -cp ${CLASSPATH}:../../../../download/antlrworks-1.1.7.jar:../../../extraction/antlr slps.antlr2bgf.Tool ada.pp.g ada.ext.bgf | ||
../../../../shared/tools/xbgf post-extract.xbgf ada.ext.bgf ada.fix.bgf | ||
../../../../shared/tools/subgrammar ada.fix.bgf compilation_unit ada.bgf | ||
../../../extraction/antlr/antlrpp.py ada.rsc.g ada.prepared.g | ||
java -cp ${CLASSPATH}:../../../../download/antlrworks-1.1.7.jar:../../../extraction/antlr slps.antlr2bgf.Tool ada.prepared.g raw.bgf | ||
${tooldir}/xbgf post-extract.xbgf raw.bgf grammar.bgf | ||
#${tooldir}/subgrammar ext.bgf compilation_unit grammar.bgf | ||
|
||
clean: | ||
rm -f ada.pp.g *.bgf | ||
include ../../Makefile.grammar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
extract: | ||
cat src.syntax.summary.txt > src.prepared.txt | ||
perl -pi -w -e 's/{\|/{TERMINALBAR/g;' src.prepared.txt | ||
../../hunter.py src.prepared.txt config.edd ada-1.bgf | ||
${tooldir}/xbgf post-extract.xbgf ada-1.bgf ada-2.bgf | ||
${tooldir}/xbgf correct.xbgf ada-2.bgf ada.bgf | ||
${hunter} src.prepared.txt config.edd raw.bgf | ||
${tooldir}/xbgf post-extract.xbgf raw.bgf ext.bgf | ||
${tooldir}/xbgf correct.xbgf ext.bgf grammar.bgf | ||
|
||
include ../../Makefile.include | ||
include ../../Makefile.grammar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
extract: | ||
../../hunter.py src.context.free.syntax.txt config.edd ada.raw.bgf | ||
../../../../shared/tools/xbgf correct.xbgf ada.raw.bgf ada.bgf | ||
${hunter} src.context.free.syntax.txt config.edd raw.bgf | ||
${tooldir}/xbgf correct.xbgf raw.bgf grammar.bgf | ||
|
||
test: | ||
ls -1 *.bgf | xargs -n1 ../../../../shared/tools/validate bgf | ||
../../../../shared/tools/checkbgf ada.bgf | ||
|
||
clean: | ||
rm -rf *.bgf *.bnf | ||
include ../../Makefile.grammar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kellogg | ||
kempe | ||
laemmel-verhoef | ||
lncs-2219 | ||
lncs-4348 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1 @@ | ||
extract: | ||
cd bezault && make extract | ||
cd iso-25436-2006 && make extract | ||
|
||
clean: | ||
cd bezault && make clean | ||
cd iso-25436-2006 && make clean | ||
|
||
test: | ||
cd bezault && make test | ||
cd iso-25436-2006 && make test | ||
|
||
include ../Makefile.language |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
extract: | ||
../../hunter.py src.the.syntax.txt config.edd eiffel.raw.bgf | ||
${tooldir}/xbgf post-extract.xbgf eiffel.raw.bgf eiffel.ext.bgf | ||
${tooldir}/xbgf complete.xbgf eiffel.ext.bgf eiffel.bgf | ||
${hunter} src.the.syntax.txt config.edd raw.bgf | ||
${tooldir}/xbgf post-extract.xbgf raw.bgf ext.bgf | ||
${tooldir}/xbgf complete.xbgf ext.bgf grammar.bgf | ||
|
||
include ../../Makefile.include | ||
include ../../Makefile.grammar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.