Skip to content

Commit

Permalink
reviving the Grammar Tank; removing the Rascal grammar for the time b…
Browse files Browse the repository at this point in the history
…eing
  • Loading branch information
grammarware committed Oct 3, 2012
1 parent c4a064e commit d6dceeb
Show file tree
Hide file tree
Showing 124 changed files with 1,356 additions and 3,956 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
tmp.xml
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -24,8 +24,8 @@ zooprj:

tankprj:
rm -f tank/*/*
cp ../topics/convergence/fl/snapshot/*.bgf tank/fl/
cp ../topics/testing/gbtf/tests/tescol/*.bgf tank/tescol/
cp ../slps/topics/convergence/xbgf/fl/snapshot/*.bgf tank/fl/
cp ../slps/topics/testing/gbtf/tests/tescol/*.bgf tank/tescol/
chmod 644 tank/*/*.bgf
xsltproc _dev/list2makefile.xslt _dev/tank.xml | grep -v 'tank/fl' | grep -v 'tank/tescol' > _dev/Makefile.y
make -f _dev/Makefile.y
Expand Down
66 changes: 66 additions & 0 deletions _dev/Makefile.y
@@ -0,0 +1,66 @@
all:
_dev/format tank fl/antlr fl/antlr
_dev/format tank fl/dcg fl/dcg
_dev/format tank fl/sdf fl/sdf
_dev/format tank fl/txl fl/txl
_dev/format tank fl/ecore fl/ecore
_dev/format tank fl/emf fl/emf
_dev/format tank fl/xsd fl/xsd
_dev/format tank fl/om fl/om
_dev/format tank fl/jaxb fl/jaxb
cp ../slps/topics/grammars/metasyntax/bgf/grammar.bgf tank/metasyntax/bgf.bgf
_dev/format tank metasyntax/bgf metasyntax/bgf
cp ../slps/topics/grammars/metasyntax/bnf-sdf/grammar.bgf tank/metasyntax/bnf-sdf.bgf
_dev/format tank metasyntax/bnf-sdf metasyntax/bnf-sdf
cp ../slps/topics/grammars/metasyntax/ebnf-bgf/grammar.bgf tank/metasyntax/ebnf-bgf.bgf
_dev/format tank metasyntax/ebnf-bgf metasyntax/ebnf-bgf
cp ../slps/topics/grammars/metasyntax/ebnf-iso-1/grammar.bgf tank/metasyntax/ebnf-iso-1.bgf
_dev/format tank metasyntax/ebnf-iso-1 metasyntax/ebnf-iso-1
cp ../slps/topics/grammars/metasyntax/ebnf-iso-2/grammar.bgf tank/metasyntax/ebnf-iso-2.bgf
_dev/format tank metasyntax/ebnf-iso-2 metasyntax/ebnf-iso-2
cp ../slps/topics/grammars/metasyntax/ebnf-iso-3/grammar.bgf tank/metasyntax/ebnf-iso-3.bgf
_dev/format tank metasyntax/ebnf-iso-3 metasyntax/ebnf-iso-3
cp ../slps/topics/grammars/metasyntax/ebnf-sdf/grammar.bgf tank/metasyntax/ebnf-sdf.bgf
_dev/format tank metasyntax/ebnf-sdf metasyntax/ebnf-sdf
cp ../slps/topics/grammars/metasyntax/lll-ldta/grammar.bgf tank/metasyntax/lll-ldta.bgf
_dev/format tank metasyntax/lll-ldta metasyntax/lll-ldta
cp ../slps/topics/grammars/metasyntax/lll-kort/grammar.bgf tank/metasyntax/lll-kort.bgf
_dev/format tank metasyntax/lll-kort metasyntax/lll-kort
cp ../slps/topics/grammars/metasyntax/txl/grammar.bgf tank/metasyntax/txl.bgf
_dev/format tank metasyntax/txl metasyntax/txl
cp ../slps/topics/grammars/metasyntax/yacc/grammar.bgf tank/metasyntax/yacc.bgf
_dev/format tank metasyntax/yacc metasyntax/yacc
_dev/format tank tescol/reference Reference
_dev/format tank tescol/00000 00000
_dev/format tank tescol/00001 00001
_dev/format tank tescol/00010 00010
_dev/format tank tescol/00011 00011
_dev/format tank tescol/00100 00100
_dev/format tank tescol/00101 00101
_dev/format tank tescol/00110 00110
_dev/format tank tescol/00111 00111
_dev/format tank tescol/01000 01000
_dev/format tank tescol/01001 01001
_dev/format tank tescol/01010 01010
_dev/format tank tescol/01011 01011
_dev/format tank tescol/01100 01100
_dev/format tank tescol/01101 01101
_dev/format tank tescol/01110 01110
_dev/format tank tescol/01111 01111
_dev/format tank tescol/10000 10000
_dev/format tank tescol/10001 10001
_dev/format tank tescol/10010 10010
_dev/format tank tescol/10011 10011
_dev/format tank tescol/10100 10100
_dev/format tank tescol/10101 10101
_dev/format tank tescol/10110 10110
_dev/format tank tescol/10111 10111
_dev/format tank tescol/11000 11000
_dev/format tank tescol/11001 11001
_dev/format tank tescol/11010 11010
_dev/format tank tescol/11011 11011
_dev/format tank tescol/11100 11100
_dev/format tank tescol/11101 11101
_dev/format tank tescol/11110 11110
_dev/format tank tescol/11111 11111

16 changes: 8 additions & 8 deletions _dev/format
@@ -1,11 +1,11 @@
#!/bin/sh

../shared/tools/bgf2bnf $1/$2.bgf $1/$2.bnf
../shared/tools/bgf2dms $1/$2.bgf $1/$2.dms
../shared/tools/bgf2sdf $1/$2.bgf $1/$2.sdf
../shared/tools/bgf2rsc $1/$2.bgf $1/$2.rsc
../topics/investigation/analysis/overview_bgf.py $1/$2.bgf >tmp.xml || exit -1
xsltproc --stringparam date `date +"%d/%m/%Y"` --stringparam zoo ../../../www/_dev/$1.xml --stringparam id $3 --stringparam report ../../../www/tmp.xml ../topics/export/hypertext/bgf2fancy.xslt $1/$2.bgf >$1/$2.html || exit -1
if [ -r ../topics/grammars/$3 ]; then
ls -1 ../topics/grammars/$3/*.xbgf | xargs -n1 -I _ basename _ .xbgf | xargs -n1 -I _ ../shared/tools/xbgf2html ../topics/grammars/$3/_.xbgf $1/$2-_.html `basename $2`.html
../slps/shared/tools/bgf2bnf $1/$2.bgf $1/$2.bnf
../slps/shared/tools/bgf2dms $1/$2.bgf $1/$2.dms
../slps/shared/tools/bgf2sdf $1/$2.bgf $1/$2.sdf
../slps/shared/tools/bgf2rsc $1/$2.bgf $1/$2.rsc
../slps/topics/investigation/analysis/overview_bgf.py $1/$2.bgf >tmp.xml || exit -1
xsltproc --stringparam date `date +"%d/%m/%Y"` --stringparam zoo ../../../../grammarware.github.com/_dev/$1.xml --stringparam id $3 --stringparam report ../../../../grammarware.github.com/tmp.xml ../slps/topics/export/hypertext/bgf2fancy.xslt $1/$2.bgf >$1/$2.html || exit -1
if [ -r ../slps/topics/grammars/$3 ]; then
ls -1 ../slps/topics/grammars/$3/*.xbgf | xargs -n1 -I _ basename _ .xbgf | xargs -n1 -I _ ../slps/shared/tools/xbgf2html ../slps/topics/grammars/$3/_.xbgf $1/$2-_.html `basename $2`.html
fi
4 changes: 2 additions & 2 deletions _dev/list2makefile.xslt
Expand Up @@ -19,7 +19,7 @@
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:text> cp ../topics/grammars/</xsl:text>
<xsl:text> cp ../slps/topics/grammars/</xsl:text>
<xsl:value-of select="handle"/>
<xsl:text>/grammar.bgf </xsl:text>
<xsl:value-of select="/zoo/name"/>
Expand Down Expand Up @@ -50,7 +50,7 @@
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:text> cp ../topics/grammars/</xsl:text>
<xsl:text> cp ../slps/topics/grammars/</xsl:text>
<xsl:value-of select="."/>
<xsl:text>/grammar.bgf </xsl:text>
<xsl:value-of select="/zoo/name"/>
Expand Down
6 changes: 3 additions & 3 deletions _dev/list2xhtml.xslt
Expand Up @@ -123,7 +123,7 @@
<li>
<xsl:text>BNF-like Grammar Format:</xsl:text>
<span class="links">
[<a href="http://slps.svn.sourceforge.net/viewvc/slps/shared/xsd/bgf.xsd?view=markup">Schema</a>]
[<a href="https://github.com/grammarware/slps/blob/master/shared/xsd/bgf.xsd">Schema</a>]
[<a href="http://www.w3.org/TR/xml/">W3C XML Rec</a>]
[<a href="http://www.w3.org/TR/xmlschema11-1/">W3C XSD WD 1</a>]
[<a href="http://www.w3.org/TR/xmlschema11-2/">W3C XSD WD 2</a>]
Expand Down Expand Up @@ -205,7 +205,7 @@
</a>
</xsl:when>
<xsl:when test="mu">
<a xmlns="http://www.w3.org/1999/xhtml" href="http://slps.svn.sourceforge.net/viewvc/slps/{mu}?view=markup">
<a xmlns="http://www.w3.org/1999/xhtml" href="https://github.com/grammarware/slps/blob/master/{mu}">
<xsl:value-of select="name"/>
</a>
</xsl:when>
Expand All @@ -216,7 +216,7 @@
</a>
</xsl:when>
<xsl:when test="slps">
<a xmlns="http://www.w3.org/1999/xhtml" href="http://slps.svn.sourceforge.net/viewvc/slps/{slps}">
<a xmlns="http://www.w3.org/1999/xhtml" href="https://github.com/grammarware/slps/tree/master/{slps}">
<xsl:value-of select="name"/>
</a>
</xsl:when>
Expand Down
30 changes: 15 additions & 15 deletions _dev/tank.xml
Expand Up @@ -116,7 +116,7 @@
<date>17 May – 16 July 2008</date>
<link>
<mu>topics/fl/java1/FL.g</mu>
<name>SVN</name>
<name>GitHub</name>
</link>
<link>
<uri>http://www.antlr.org/</uri>
Expand Down Expand Up @@ -147,7 +147,7 @@
<date>28 July – 3 September 2008</date>
<link>
<mu>topics/fl/prolog1/Parser.pro</mu>
<name>SVN</name>
<name>GitHub</name>
</link>
</source>
<toolset>
Expand Down Expand Up @@ -184,8 +184,8 @@
</title>
<date>1–25 Aug 2008</date>
<link>
<uri>http://slps.svn.sourceforge.net/viewvc/slps/topics/fl/asfsdf/</uri>
<name>SVN</name>
<uri>https://github.com/grammarware/slps/tree/master/topics/fl/asfsdf</uri>
<name>GitHub</name>
</link>
</source>
<toolset ref="sdf2bgf"/>
Expand All @@ -202,7 +202,7 @@
<date>6–7 Jul 2009</date>
<link>
<mu>topics/fl/txl/FL.Txl</mu>
<name>SVN</name>
<name>GitHub</name>
</link>
</source>
<toolset ref="txl2bgf"/>
Expand All @@ -219,7 +219,7 @@
<date>26 June 2008 – 28 May 2009</date>
<link>
<mu>topics/fl/emf1/fl.ecore</mu>
<name>SVN</name>
<name>GitHub</name>
</link>
</source>
<toolset>
Expand All @@ -233,15 +233,15 @@
</grammar>
<grammar>
<name>Extracted</name>
<handle>fl/ecore2</handle>
<handle>fl/emf</handle>
<source>
<title>
Vadim Zaytsev, <code xmlns="http://www.w3.org/1999/xhtml">fl.ecore</code> generated from <code xmlns="http://www.w3.org/1999/xhtml">fl.xsd</code>
</title>
<date>28 May 2009</date>
<link>
<mu>topics/fl/emf2/model/fl.ecore</mu>
<name>SVN</name>
<name>GitHub</name>
</link>
<link>
<uri>http://www.eclipse.org</uri>
Expand All @@ -267,7 +267,7 @@
<date>20 May – 29 July 2008</date>
<link>
<mu>topics/fl/xsd/fl.xsd</mu>
<name>SVN</name>
<name>GitHub</name>
</link>
</source>
<toolset ref="xsd2bgf"/>
Expand All @@ -283,8 +283,8 @@
</title>
<date>17 May – 28 July 2008</date>
<link>
<uri>http://slps.svn.sourceforge.net/viewvc/slps/topics/fl/java1/types/</uri>
<name>SVN</name>
<uri>https://github.com/grammarware/slps/tree/master/topics/fl/java1/types</uri>
<name>GitHub</name>
</link>
</source>
<toolset>
Expand All @@ -306,8 +306,8 @@
</title>
<date>21 May – 28 July 2008</date>
<link>
<uri>http://slps.svn.sourceforge.net/viewvc/slps/topics/fl/java3/fl/</uri>
<name>SVN</name>
<slps>topics/fl/java3/fl</slps>
<name>GitHub</name>
</link>
<link>
<uri>http://jaxb.java.net/</uri>
Expand Down Expand Up @@ -650,7 +650,7 @@
</item>
</grammar>
</version>
<version>
<!-- <version>
<name>Rascal</name>
<grammar>
<name>Extracted</name>
Expand Down Expand Up @@ -678,7 +678,7 @@
</link>
</toolset>
</grammar>
</version>
</version> -->
<version>
<name>TXL</name>
<grammar>
Expand Down

0 comments on commit d6dceeb

Please sign in to comment.