Skip to content

Commit

Permalink
Showing pretty-printed XBGF scripts instead of simply using Source Fo…
Browse files Browse the repository at this point in the history
…rce markup

git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@1053 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed May 25, 2011
1 parent 8875db4 commit 9d66208
Show file tree
Hide file tree
Showing 7 changed files with 121 additions and 113 deletions.
16 changes: 9 additions & 7 deletions _dev/Makefile.ada.zoo
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
all:
make kellogg -f _dev/Makefile.ada.zoo
make kempe -f _dev/Makefile.ada.zoo
make laemmel-verhoef -f _dev/Makefile.ada.zoo
make lncs-2219 -f _dev/Makefile.ada.zoo
make lncs-4348 -f _dev/Makefile.ada.zoo
make kellogg -f _dev/Makefile.ada.zoo
chmod 644 zoo/ada/*.*
rm tmp.xml

%:
cp ../topics/grammars/ada/$*/ada.bgf zoo/ada/$*.bgf
../shared/tools/bgf2bnf zoo/ada/$*.bgf zoo/ada/$*.bnf
../shared/tools/bgf2dms zoo/ada/$*.bgf zoo/ada/$*.dms
../shared/tools/bgf2sdf zoo/ada/$*.bgf zoo/ada/$*.sdf
../shared/tools/bgf2rsc zoo/ada/$*.bgf zoo/ada/$*.rsc
_dev/fancy zoo ada $* ada$*
chmod 644 zoo/ada/*.bgf
../shared/tools/bgf2bnf zoo/ada/$*.bgf zoo/ada/$*.bnf
../shared/tools/bgf2dms zoo/ada/$*.bgf zoo/ada/$*.dms
../shared/tools/bgf2sdf zoo/ada/$*.bgf zoo/ada/$*.sdf
../shared/tools/bgf2rsc zoo/ada/$*.bgf zoo/ada/$*.rsc
_dev/fancy zoo ada $* ada-$*
if [ -r ../topics/grammars/ada/$*/post-extract.xbgf ]; then ../shared/tools/xbgf2html ../topics/grammars/ada/$*/post-extract.xbgf zoo/ada/$*-post-extract.html $*.html; fi
if [ -r ../topics/grammars/ada/$*/correct.xbgf ]; then ../shared/tools/xbgf2html ../topics/grammars/ada/$*/correct.xbgf zoo/ada/$*-correct.html $*.html; fi
17 changes: 9 additions & 8 deletions _dev/Makefile.eif.zoo
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
all:
make eif -f _dev/Makefile.eif.zoo
chmod 644 zoo/eiffel/*.bgf
ls -1 zoo/eiffel/*.bgf | xargs -n1 -I _ basename _ .bgf | xargs -n1 -I ZZZ make ZZZ.formats -f _dev/Makefile.eif.zoo
make iso-25436-2006 -f _dev/Makefile.eif.zoo
chmod 644 zoo/eiffel/*.*
rm tmp.xml

%.formats:
%:
cp ../topics/grammars/eiffel/$*/eiffel.bgf zoo/eiffel/$*.bgf
../shared/tools/bgf2bnf zoo/eiffel/$*.bgf zoo/eiffel/$*.bnf
../shared/tools/bgf2dms zoo/eiffel/$*.bgf zoo/eiffel/$*.dms
../shared/tools/bgf2sdf zoo/eiffel/$*.bgf zoo/eiffel/$*.sdf
../shared/tools/bgf2rsc zoo/eiffel/$*.bgf zoo/eiffel/$*.rsc
_dev/fancy zoo eiffel $* eiffel

eif:
cp ../topics/grammars/eiffel/eiffel.bgf zoo/eiffel/eiffel.bgf
_dev/fancy zoo eiffel $* eiffel$*
if [ -r ../topics/grammars/eiffel/$*/post-extract.xbgf ]; then ../shared/tools/xbgf2html ../topics/grammars/eiffel/$*/post-extract.xbgf zoo/eiffel/$*-post-extract.html $*.html; fi
if [ -r ../topics/grammars/eiffel/$*/correct.xbgf ]; then ../shared/tools/xbgf2html ../topics/grammars/eiffel/$*/correct.xbgf zoo/eiffel/$*-correct.html $*.html; fi
24 changes: 13 additions & 11 deletions _dev/Makefile.for.zoo
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
all:
make for90 -f _dev/Makefile.for.zoo
chmod 644 zoo/fortran/*.bgf
ls -1 zoo/fortran/*.bgf | xargs -n1 -I _ basename _ .bgf | xargs -n1 -I ZZZ make ZZZ.formats -f _dev/Makefile.for.zoo
make derricks -f _dev/Makefile.for.zoo
chmod 644 zoo/fortran/*.*
rm tmp.xml

%.formats:
../shared/tools/bgf2dms zoo/fortran/$*.bgf zoo/fortran/$*.dms
../shared/tools/bgf2sdf zoo/fortran/$*.bgf zoo/fortran/$*.sdf
../shared/tools/bgf2rsc zoo/fortran/$*.bgf zoo/fortran/$*.rsc
_dev/fancy zoo fortran $* fortran

for90:
cp ../topics/grammars/fortran/fortran.sdf.rec.bgf zoo/fortran/fortran90.bgf
%:
cp ../topics/grammars/fortran/$*/fortran.bgf zoo/fortran/$*.bgf
../shared/tools/bgf2bnf zoo/fortran/$*.bgf zoo/fortran/$*.bnf
../shared/tools/bgf2dms zoo/fortran/$*.bgf zoo/fortran/$*.dms
../shared/tools/bgf2sdf zoo/fortran/$*.bgf zoo/fortran/$*.sdf
../shared/tools/bgf2rsc zoo/fortran/$*.bgf zoo/fortran/$*.rsc
_dev/fancy zoo fortran $* fortran-$*
if [ -r ../topics/grammars/fortran/$*/post-extract.xbgf ]; then ../shared/tools/xbgf2html ../topics/grammars/fortran/$*/post-extract.xbgf zoo/fortran/$*-post-extract.html $*.html; fi
if [ -r ../topics/grammars/fortran/$*/correct.xbgf ]; then ../shared/tools/xbgf2html ../topics/grammars/fortran/$*/correct.xbgf zoo/fortran/$*-correct.html $*.html; fi
if [ -r ../topics/grammars/fortran/$*/refactor.xbgf ]; then ../shared/tools/xbgf2html ../topics/grammars/fortran/$*/refactor.xbgf zoo/fortran/$*-refactor.html $*.html; fi
8 changes: 7 additions & 1 deletion _dev/listgrammars.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@
<xsl:value-of select="name"/>
</a>
</xsl:when>
<xsl:when test="xbgf">
<a xmlns="http://www.w3.org/1999/xhtml" href="{xbgf}.html">
<xsl:value-of select="name"/>
<xsl:text>.xbgf</xsl:text>
</a>
</xsl:when>
<xsl:when test="slps">
<a xmlns="http://www.w3.org/1999/xhtml" href="http://slps.svn.sourceforge.net/viewvc/slps/{slps}">
<xsl:value-of select="name"/>
Expand Down Expand Up @@ -265,7 +271,7 @@
<xsl:value-of select="name"/>
<xsl:text> grammar: </xsl:text>
<span class="links">
[<a href="{../../handle}/{handle}.html">Browsable</a>]
[<a href="{../../handle}/{handle}.html" class="red">Browsable</a>]
[<a href="{../../handle}/{handle}.bgf">BGF</a>]
[<a href="{../../handle}/{handle}.bnf">EBNF</a>]
<xsl:if test="(../../handle='c') or (../../handle='cpp') or ((../../handle='csharp') and not(handle='iso-23270-2003') and not(handle='iso-23270-2003-recovered'))">
Expand Down
58 changes: 27 additions & 31 deletions _dev/zoo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,15 @@
<name>Hunter</name>
</link>
<link>
<mu>topics/grammars/ada/kempe/post-extract.xbgf</mu>
<name>XBGF</name>
<xbgf>ada/kempe-post-extract</xbgf>
<name>post-extract</name>
</link>
</toolset>
<toolset>
<name>Recovery</name>
<link>
<mu>topics/grammars/ada/kempe/correct.xbgf</mu>
<name>XBGF</name>
<xbgf>ada/kempe-correct</xbgf>
<name>correct</name>
</link>
</toolset>
<source id="adalaemmel-verhoef">
Expand Down Expand Up @@ -229,16 +229,12 @@
<mu>topics/grammars/hunter.py</mu>
<name>Hunter</name>
</link>
<link>
<mu>topics/grammars/ada/laemmel-verhoef/post-extract.xbgf</mu>
<name>XBGF</name>
</link>
</toolset>
<toolset>
<name>Recovery</name>
<link>
<mu>topics/grammars/ada/laemmel-verhoef/correct.xbgf</mu>
<name>XBGF</name>
<xbgf>ada/laemmel-verhoef-correct</xbgf>
<name>correct</name>
</link>
</toolset>
<source id="adalncs-2219">
Expand Down Expand Up @@ -273,15 +269,15 @@
<name>Hunter</name>
</link>
<link>
<mu>topics/grammars/ada/lncs-2219/post-extract.xbgf</mu>
<name>XBGF</name>
<xbgf>ada/lncs-2219-post-extract</xbgf>
<name>post-extract</name>
</link>
</toolset>
<toolset>
<name>Recovery</name>
<link>
<mu>topics/grammars/ada/lncs-2219/correct.xbgf</mu>
<name>XBGF</name>
<xbgf>ada/lncs-2219-correct</xbgf>
<name>correct</name>
</link>
</toolset>
<toolset ref="bnfdmssdfrsc"/>
Expand Down Expand Up @@ -316,8 +312,8 @@
<name>StrippedANTLR.g</name>
</link>
<link>
<mu>topics/grammars/ada/kellogg/post-extraction.xbgf</mu>
<name>post-extraction</name>
<xbgf>ada/kellogg-post-extract</xbgf>
<name>post-extract</name>
</link>
</toolset>
</version>
Expand Down Expand Up @@ -355,15 +351,15 @@
<name>Hunter</name>
</link>
<link>
<mu>topics/grammars/ada/lncs-4348/post-extract.xbgf</mu>
<name>XBGF</name>
<xbgf>ada/lncs-4348-post-extract</xbgf>
<name>post-extract</name>
</link>
</toolset>
<toolset>
<name>Recovery</name>
<link>
<mu>topics/grammars/ada/lncs-4348/correct.xbgf</mu>
<name>XBGF</name>
<xbgf>ada/lncs-4348-correct</xbgf>
<name>correct</name>
</link>
</toolset>
<toolset ref="bnfdmssdfrsc"/>
Expand Down Expand Up @@ -765,7 +761,7 @@
<name>Eiffel</name>
<version>
<name>Eiffel</name>
<source id="eiffel">
<source id="eiffel-iso-25436-2006">
<title>ISO/IEC 25436:2006(E) <em xmlns="http://www.w3.org/1999/xhtml">Information technology — Eiffel: Analysis, Design and Programming Language</em></title>
<date>2006</date>
<specific>Syntax sections collected from pages 30–158</specific>
Expand All @@ -780,28 +776,28 @@
</source>
<grammar>
<name>Extracted</name>
<handle>eiffel</handle>
<handle>iso-25436-2006</handle>
</grammar>
<toolset>
<name>Extraction</name>
<link>
<mu>topics/grammars/eiffel/config.edd</mu>
<mu>topics/grammars/eiffel/iso-25436-2006/config.edd</mu>
<name>EDD</name>
</link>
<link>
<mu>topics/grammars/hunter.py</mu>
<name>Hunter</name>
</link>
<link>
<mu>topics/grammars/eiffel/post-extract.xbgf</mu>
<name>XBGF</name>
<xbgf>eiffel/iso-25436-2006-post-extract</xbgf>
<name>post-extract</name>
</link>
</toolset>
<toolset>
<name>Recovery</name>
<link>
<mu>topics/grammars/eiffel/correct.xbgf</mu>
<name>XBGF</name>
<xbgf>eiffel/iso-25436-2006-correct</xbgf>
<name>correct</name>
</link>
</toolset>
<toolset ref="bnfdmssdfrsc"/>
Expand All @@ -812,7 +808,7 @@
<name>Fortran</name>
<version>
<name>Fortran-90</name>
<source id="fortran">
<source id="fortran-derricks">
<title>Jan Derricks, <code xmlns="http://www.w3.org/1999/xhtml">Fortran90.sdf</code></title>
<date>12 July 2007</date>
<link>
Expand All @@ -826,7 +822,7 @@
</source>
<grammar>
<name>Extracted</name>
<handle>fortran</handle>
<handle>derricks</handle>
</grammar>
<toolset ref="sdf2bgf"/>
<toolset>
Expand All @@ -836,8 +832,8 @@
<name>subgrammar.py</name>
</link>
<link>
<mu>topics/grammars/fortran/refactor.xbgf</mu>
<name>refactor.xbgf</name>
<xbgf>fortran/derricks-refactor</xbgf>
<name>refactor</name>
</link>
</toolset>
<toolset ref="bnfdmssdfrsc"/>
Expand Down
3 changes: 2 additions & 1 deletion slps.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ img {border:0;}
.last {width: 100%; text-align: right; font-style: italic;}
.last img {border:0; width: 88px; height: 31px;}
br {clear: both;}
.links {text-align:center; font-family: "Courier New", Courier, mono; font-weight: bold;}
.links {text-align:center; font-family: monospace; font-weight: bold;}
.links a {text-decoration: none;}
a:hover {text-decoration: underline;}
body{color:#033;}
a:link{color:#039;}
a:visited{color:#006;}
ul li {list-style:disc;}
a:link.red, a:visited.red {color:#933;}
Loading

0 comments on commit 9d66208

Please sign in to comment.