forked from grammarware/grammarware.github.io
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@1057 ab42f6e0-554d-0410-b580-99e487e6eeb2
- Loading branch information
1 parent
9d4c755
commit 7862416
Showing
12 changed files
with
187 additions
and
568 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,23 +1,25 @@ | ||
#!/bin/sh | ||
|
||
if [ $2 == 'jls1-impl' ]; then | ||
cp ../topics/grammars/$1/jls1/extracted-implementable-grammar.bgf zoo/$1/$2.bgf | ||
elif [ $2 == 'jls2-impl' ]; then | ||
cp ../topics/grammars/$1/jls2/extracted-implementable-grammar.bgf zoo/$1/$2.bgf | ||
elif [ $2 == 'jls3-impl' ]; then | ||
cp ../topics/grammars/$1/jls3/extracted-implementable-grammar.bgf zoo/$1/$2.bgf | ||
elif [ $2 == 'jls1-read' ]; then | ||
cp ../topics/grammars/$1/jls1/extracted-readable-grammar.bgf zoo/$1/$2.bgf | ||
elif [ $2 == 'jls2-read' ]; then | ||
cp ../topics/grammars/$1/jls2/extracted-readable-grammar.bgf zoo/$1/$2.bgf | ||
elif [ $2 == 'jls3-read' ]; then | ||
cp ../topics/grammars/$1/jls3/extracted-readable-grammar.bgf zoo/$1/$2.bgf | ||
elif [ $1 == 'java' ]; then | ||
cp ../topics/grammars/$1/antlr-java-5/$2/$2.bgf zoo/$1/$2.bgf | ||
elif [ $2 == 'iso-23270-2003' ]; then | ||
cp ../topics/grammars/$1/iso-23270-2003/$1.ext.bgf zoo/$1/$2.bgf | ||
elif [ $2 == 'iso-23270-2003-recovered' ]; then | ||
cp ../topics/grammars/$1/iso-23270-2003/$1.bgf zoo/$1/$2.bgf | ||
if [ $3 == 'jls1-impl' ]; then | ||
cp ../topics/grammars/$2/jls1/extracted-implementable-grammar.bgf $1/$2/$3.bgf | ||
elif [ $3 == 'jls2-impl' ]; then | ||
cp ../topics/grammars/$2/jls2/extracted-implementable-grammar.bgf $1/$2/$3.bgf | ||
elif [ $3 == 'jls3-impl' ]; then | ||
cp ../topics/grammars/$2/jls3/extracted-implementable-grammar.bgf $1/$2/$3.bgf | ||
elif [ $3 == 'jls1-read' ]; then | ||
cp ../topics/grammars/$2/jls1/extracted-readable-grammar.bgf $1/$2/$3.bgf | ||
elif [ $3 == 'jls2-read' ]; then | ||
cp ../topics/grammars/$2/jls2/extracted-readable-grammar.bgf $1/$2/$3.bgf | ||
elif [ $3 == 'jls3-read' ]; then | ||
cp ../topics/grammars/$2/jls3/extracted-readable-grammar.bgf $1/$2/$3.bgf | ||
elif [ $2 == 'java' ]; then | ||
cp ../topics/grammars/$2/antlr-java-5/$3/$3.bgf $1/$2/$3.bgf | ||
elif [ $3 == 'iso-23270-2003' ]; then | ||
cp ../topics/grammars/$2/iso-23270-2003/$2.ext.bgf $1/$2/$3.bgf | ||
elif [ $3 == 'iso-23270-2003-recovered' ]; then | ||
cp ../topics/grammars/$2/iso-23270-2003/$2.bgf $1/$2/$3.bgf | ||
elif [ $2 == 'metasyntax' ]; then | ||
cp ../topics/grammars/$2/$3/$3.bgf $1/$2/$3.bgf | ||
else | ||
cp ../topics/grammars/$1/$2/$1.bgf zoo/$1/$2.bgf | ||
cp ../topics/grammars/$2/$3/$2.bgf $1/$2/$3.bgf | ||
fi |
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,30 +1,35 @@ | ||
#!/bin/sh | ||
|
||
../shared/tools/bgf2bnf zoo/$1/$2.bgf zoo/$1/$2.bnf | ||
../shared/tools/bgf2dms zoo/$1/$2.bgf zoo/$1/$2.dms | ||
../shared/tools/bgf2sdf zoo/$1/$2.bgf zoo/$1/$2.sdf | ||
../shared/tools/bgf2rsc zoo/$1/$2.bgf zoo/$1/$2.rsc | ||
if [ $2 == 'iso-23270-2003-recovered' ]; then | ||
_dev/fancy zoo $1 $2 csharp-iso-23270-2003 | ||
elif [ $2 == 'jls1-read' ]; then | ||
_dev/fancy zoo $1 $2 jls1 | ||
elif [ $2 == 'jls2-read' ]; then | ||
_dev/fancy zoo $1 $2 jls2 | ||
elif [ $2 == 'jls3-read' ]; then | ||
_dev/fancy zoo $1 $2 jls3 | ||
elif [ $2 == 'jls1-impl' ]; then | ||
_dev/fancy zoo $1 $2 jls1 | ||
elif [ $2 == 'jls2-impl' ]; then | ||
_dev/fancy zoo $1 $2 jls2 | ||
elif [ $2 == 'jls3-impl' ]; then | ||
_dev/fancy zoo $1 $2 jls3 | ||
elif [ $1 == 'java' ]; then | ||
_dev/fancy zoo $1 $2 $1-$2 | ||
ls -1 ../topics/grammars/$1/antlr-java-5/$2/*.xbgf | xargs -n1 -I _ basename _ .xbgf | xargs -n1 -I _ ../shared/tools/xbgf2html ../topics/grammars/$1/antlr-java-5/$2/_.xbgf zoo/$1/$2-_.html $2.html | ||
elif [ -r ../topics/grammars/$1/$2 ]; then | ||
_dev/fancy zoo $1 $2 $1-$2 | ||
ls -1 ../topics/grammars/$1/$2/*.xbgf | xargs -n1 -I _ basename _ .xbgf | xargs -n1 -I _ ../shared/tools/xbgf2html ../topics/grammars/$1/$2/_.xbgf zoo/$1/$2-_.html $2.html | ||
../shared/tools/bgf2bnf $1/$2/$3.bgf $1/$2/$3.bnf | ||
../shared/tools/bgf2dms $1/$2/$3.bgf $1/$2/$3.dms | ||
../shared/tools/bgf2sdf $1/$2/$3.bgf $1/$2/$3.sdf | ||
../shared/tools/bgf2rsc $1/$2/$3.bgf $1/$2/$3.rsc | ||
if [ $3 == 'iso-23270-2003-recovered' ]; then | ||
_dev/fancy $1 $2 $3 csharp-iso-23270-2003 | ||
elif [ $3 == 'jls1-read' ]; then | ||
_dev/fancy $1 $2 $3 jls1 | ||
elif [ $3 == 'jls2-read' ]; then | ||
_dev/fancy $1 $2 $3 jls2 | ||
elif [ $3 == 'jls3-read' ]; then | ||
_dev/fancy $1 $2 $3 jls3 | ||
elif [ $3 == 'jls1-impl' ]; then | ||
_dev/fancy $1 $2 $3 jls1 | ||
elif [ $3 == 'jls2-impl' ]; then | ||
_dev/fancy $1 $2 $3 jls2 | ||
elif [ $3 == 'jls3-impl' ]; then | ||
_dev/fancy $1 $2 $3 jls3 | ||
elif [ $2 == 'java' ]; then | ||
_dev/fancy $1 $2 $3 $2-$3 | ||
ls -1 ../topics/grammars/$2/antlr-java-5/$3/*.xbgf | xargs -n1 -I _ basename _ .xbgf | xargs -n1 -I _ ../shared/tools/xbgf2html ../topics/grammars/$2/antlr-java-5/$3/_.xbgf $1/$2/$3-_.html $3.html | ||
elif [ $2 == 'metasyntax' ]; then | ||
_dev/fancy $1 $2 $3 $2-$3 | ||
ls -1 ../topics/grammars/$2/$3/*.xbgf | xargs -n1 -I _ basename _ .xbgf | xargs -n1 -I _ ../shared/tools/xbgf2html ../topics/grammars/$2/$3/_.xbgf $1/$2/$3-_.html $3.html | ||
elif [ $1 == 'tank' ]; then | ||
_dev/fancy $1 $2 $3 $2-$3 | ||
elif [ -r ../topics/grammars/$2/$3 ]; then | ||
_dev/fancy $1 $2 $3 $2-$3 | ||
ls -1 ../topics/grammars/$2/$3/*.xbgf | xargs -n1 -I _ basename _ .xbgf | xargs -n1 -I _ ../shared/tools/xbgf2html ../topics/grammars/$2/$3/_.xbgf $1/$2/$3-_.html $3.html | ||
else | ||
echo Cannot find directory $1/$2 | ||
echo Cannot find directory $2/$3 | ||
exit -1 | ||
fi |
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.