Permalink
Browse files

proudly presenting The SLPS Grammar Zoo!

git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@800 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information...
grammarware committed May 9, 2010
1 parent badd58c commit f0b546bc1b383dffc9d6b24a0ddafed7e883b205
View
@@ -4,7 +4,14 @@ upload:
scp index.html rlaemmel,slps@web.sourceforge.net:htdocs
sync:
- rsync -avz --exclude=".svn" --exclude="Makefile" * sspider,slps@web.sourceforge.net:htdocs
+ rsync -avz --exclude=".svn" --exclude="Makefile" --exclude="*.zoo" * sspider,slps@web.sourceforge.net:htdocs
clean:
- rm -f *~
+ rm -f *~ zoo/*/*
+
+build:
+ make -f Makefile.c.zoo
+ make -f Makefile.cpp.zoo
+ make -f Makefile.csharp.zoo
+ make -f Makefile.java.zoo
+ xsltproc ../shared/xsl/zoo2xhtml.xslt config.zoo > zoo/index.html
View
@@ -0,0 +1,12 @@
+all:
+ make iso-9899-1999 -f Makefile.c.zoo
+ make iso-9899-tc2 -f Makefile.c.zoo
+ make iso-9899-tc3 -f Makefile.c.zoo
+
+%:
+ cp ../topics/grammars/c/$*/extracted-grammar.bgf zoo/c/$*.bgf
+ cp ../topics/grammars/c/$*/intermediate.lll zoo/c/$*.lll
+ ../shared/tools/bgf2html zoo/c/$*.bgf zoo/c/$*.html
+ ../shared/tools/bgf2bnf zoo/c/$*.bgf zoo/c/$*.bnf
+ ../shared/tools/bgf2dms zoo/c/$*.bgf zoo/c/$*.dms
+ ../shared/tools/bgf2sdf zoo/c/$*.bgf zoo/c/$*.sdf
View
@@ -0,0 +1,10 @@
+all:
+ make iso-14882-1998 -f Makefile.cpp.zoo
+
+%:
+ cp ../topics/grammars/cpp/$*/extracted-grammar.bgf zoo/cpp/$*.bgf
+ cp ../topics/grammars/cpp/$*/intermediate.lll zoo/cpp/$*.lll
+ ../shared/tools/bgf2html zoo/cpp/$*.bgf zoo/cpp/$*.html
+ ../shared/tools/bgf2bnf zoo/cpp/$*.bgf zoo/cpp/$*.bnf
+ ../shared/tools/bgf2dms zoo/cpp/$*.bgf zoo/cpp/$*.dms
+ ../shared/tools/bgf2sdf zoo/cpp/$*.bgf zoo/cpp/$*.sdf
View
@@ -0,0 +1,34 @@
+all:
+ make ecma-334-1 -f Makefile.csharp.zoo
+ make ecma-334-2 -f Makefile.csharp.zoo
+ make ecma-334-3 -f Makefile.csharp.zoo
+ make ecma-334-4 -f Makefile.csharp.zoo
+ make iso-23270-2003-extracted -f Makefile.csharp.zoo
+ make iso-23270-2003-recovered -f Makefile.csharp.zoo
+ make iso-23270-2006 -f Makefile.csharp.zoo
+ make msft-ls-1.0 -f Makefile.csharp.zoo
+ make msft-ls-1.2 -f Makefile.csharp.zoo
+ make msft-ls-3.0 -f Makefile.csharp.zoo
+ make msft-ls-4.0 -f Makefile.csharp.zoo
+
+%:
+ cp ../topics/grammars/csharp/$*/extracted-grammar.bgf zoo/csharp/$*.bgf
+ cp ../topics/grammars/csharp/$*/intermediate.lll zoo/csharp/$*.lll
+ ../shared/tools/bgf2html zoo/csharp/$*.bgf zoo/csharp/$*.html
+ ../shared/tools/bgf2bnf zoo/csharp/$*.bgf zoo/csharp/$*.bnf
+ ../shared/tools/bgf2dms zoo/csharp/$*.bgf zoo/csharp/$*.dms
+ ../shared/tools/bgf2sdf zoo/csharp/$*.bgf zoo/csharp/$*.sdf
+
+iso-23270-2003-extracted:
+ cp ../topics/grammars/csharp/iso-23270-2003/extracted-grammar.bgf zoo/csharp/iso-23270-2003.bgf
+ ../shared/tools/bgf2html zoo/csharp/iso-23270-2003.bgf zoo/csharp/iso-23270-2003.html
+ ../shared/tools/bgf2bnf zoo/csharp/iso-23270-2003.bgf zoo/csharp/iso-23270-2003.bnf
+ ../shared/tools/bgf2dms zoo/csharp/iso-23270-2003.bgf zoo/csharp/iso-23270-2003.dms
+ ../shared/tools/bgf2sdf zoo/csharp/iso-23270-2003.bgf zoo/csharp/iso-23270-2003.sdf
+
+iso-23270-2003-recovered:
+ cp ../topics/grammars/csharp/iso-23270-2003/recovered-grammar.bgf zoo/csharp/iso-23270-2003-recovered.bgf
+ ../shared/tools/bgf2html zoo/csharp/iso-23270-2003-recovered.bgf zoo/csharp/iso-23270-2003-recovered.html
+ ../shared/tools/bgf2bnf zoo/csharp/iso-23270-2003-recovered.bgf zoo/csharp/iso-23270-2003-recovered.bnf
+ ../shared/tools/bgf2dms zoo/csharp/iso-23270-2003-recovered.bgf zoo/csharp/iso-23270-2003-recovered.dms
+ ../shared/tools/bgf2sdf zoo/csharp/iso-23270-2003-recovered.bgf zoo/csharp/iso-23270-2003-recovered.sdf
View
@@ -0,0 +1,16 @@
+all:
+ make 1.jls -f Makefile.java.zoo
+ make 2.jls -f Makefile.java.zoo
+ make 3.jls -f Makefile.java.zoo
+
+%.jls:
+ cp ../topics/grammars/java/jls$*/extracted-implementable-grammar.bgf zoo/java/jls$*-impl.bgf
+ make jls$*-impl.formats -f Makefile.java.zoo
+ cp ../topics/grammars/java/jls$*/extracted-readable-grammar.bgf zoo/java/jls$*-read.bgf
+ make jls$*-read.formats -f Makefile.java.zoo
+
+%.formats:
+ ../shared/tools/bgf2html zoo/java/$*.bgf zoo/java/$*.html
+ ../shared/tools/bgf2bnf zoo/java/$*.bgf zoo/java/$*.bnf
+ ../shared/tools/bgf2dms zoo/java/$*.bgf zoo/java/$*.dms
+ ../shared/tools/bgf2sdf zoo/java/$*.bgf zoo/java/$*.sdf
Oops, something went wrong.

0 comments on commit f0b546b

Please sign in to comment.