Skip to content

Commit

Permalink
more Languedoc subtopics
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@516 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Mar 10, 2009
1 parent a6441a3 commit 203d91e
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 26 deletions.
29 changes: 4 additions & 25 deletions shared/xsd/xldf.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
</xsd:annotation>

<xsd:import namespace="http://planet-sl.org/ldf" schemaLocation="ldf.xsd"/>
<xsd:import namespace="http://planet-sl.org/bgf" schemaLocation="bgf.xsd"/>
<xsd:import namespace="http://planet-sl.org/xbgf" schemaLocation="xbgf.xsd"/>
<!--xsd:import namespace="http://planet-sl.org/xbgf" schemaLocation="xbgf.xsd"/-->

<xsd:element name="sequence">
<xsd:annotation>
Expand Down Expand Up @@ -204,8 +203,8 @@
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="transform-grammar">

<!--xsd:element name="transform-grammar">
<xsd:annotation>
<xsd:documentation>
Deprecated
Expand All @@ -214,26 +213,6 @@
<xsd:complexType>
<xsd:group ref="xbgf:transformation"/>
</xsd:complexType>
</xsd:element>

<xsd:group name="scope">
<xsd:annotation>
<xsd:documentation>
Several transformation operators are possibly restricted to
a specific scope as opposed to their application to the full
input grammar. Two major forms of scope can be identified.
First, a production can be appointed by its label. Second, a
definition (nonterminal) can be appointed by its defined
nonterminal. Arguably, one may want to be able to appoint a
production even when it is not labeled, but a prior designate
transformation can then be used in order to attach a label
to the production in question.
</xsd:documentation>
</xsd:annotation>
<xsd:choice>
<xsd:element name="label" type="bgf:label"/>
<xsd:element name="nonterminal" type="bgf:nonterminal"/>
</xsd:choice>
</xsd:group>
</xsd:element-->

</xsd:schema>
24 changes: 24 additions & 0 deletions topics/languedoc/ldf/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
validator = ../../shared/tools/checkxml

build: ldf.ldf
xsltproc ../../../shared/xsl/ldf2tex.xslt ldf.ldf > ldf.tex
pdflatex -interaction=batchmode ldf
pdflatex -interaction=batchmode ldf

ldf.ldf:
../../../shared/tools/xsd2bgf ../../../shared/xsd/ldf.xsd ldf.bgf
../../../topics/extraction/xsd2ldf/ldfgen.py ../../../shared/xsd/ldf.xsd ldf.bgf ldf.ldf

rebuild:
make clean
make build

clean:
rm -f ldf*.bgf ldf*.ldf ldf.html ldf.fo ldf.pdf *.xbnf bgf*.bgf
rm -f *.aux *.log *.toc *.tex printed_for_xldf.tmp

check:
ls -1 *.xbgf | xargs -n1 ${validator} xbgf
ls -1 xldf/*.xldf | xargs -n1 ${validator} xldf
ls -1 *.bgf | xargs -n1 ${validator} bgf
ls -1 *.ldf | xargs -n1 ${validator} ldf
2 changes: 1 addition & 1 deletion topics/languedoc/xbgf/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
validator = ../../shared/tools/checkxml
validator = ../../../shared/tools/checkxml

build: bgf_pretty.bgf xbgf.ldf
python ../../../topics/transformation/xldf/xldf.py xldf/completeIntro.xldf xbgf.ldf xbgf1.ldf
Expand Down
25 changes: 25 additions & 0 deletions topics/languedoc/xldf/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
validator = ../../shared/tools/checkxml

build: xldf.ldf
xsltproc ../../../shared/xsl/ldf2tex.xslt xldf.ldf > xldf.tex
pdflatex -interaction=batchmode xldf
pdflatex -interaction=batchmode xldf

xldf.ldf:
../../../shared/tools/xsd2bgf ../../../shared/xsd/xldf.xsd xldf.bgf
../../../topics/extraction/xsd2ldf/ldfgen.py ../../../shared/xsd/xldf.xsd xldf.bgf xldf.ldf

rebuild:
make clean
make build

clean:
rm -f xldf*.bgf xldf*.ldf xldf.html xldf.fo xldf.pdf *.xbnf
rm -f bgf*.bgf ldf*.bgf ldf*.ldf ldf.fo ldf.pdf
rm -f *.aux *.log *.toc *.tex printed_for_xldf.tmp

check:
ls -1 *.xbgf | xargs -n1 ${validator} xbgf
ls -1 xldf/*.xldf | xargs -n1 ${validator} xldf
ls -1 *.bgf | xargs -n1 ${validator} bgf
ls -1 *.ldf | xargs -n1 ${validator} ldf

0 comments on commit 203d91e

Please sign in to comment.