Skip to content

Commit

Permalink
Languedoc stuff sorted out and distributed among multiple dirs
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@515 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Mar 10, 2009
1 parent 157339d commit a6441a3
Show file tree
Hide file tree
Showing 24 changed files with 135 additions and 131 deletions.
37 changes: 0 additions & 37 deletions topics/languedoc/Makefile

This file was deleted.

20 changes: 0 additions & 20 deletions topics/languedoc/bnf/Makefile

This file was deleted.

49 changes: 33 additions & 16 deletions topics/languedoc/languedoc.csproj
Expand Up @@ -54,26 +54,43 @@
<None Include="..\..\shared\xsd\xldf.xsd">
<Link>xldf.xsd</Link>
</None>
<None Include="beautify_bgf.xbgf" />
<None Include="beautify_xbgf.xbgf" />
<None Include="bnf.bgf" />
<None Include="bnf\bnf.lcf" />
<None Include="bnf\xbgf\designate.xbgf" />
<None Include="bnf\xbgf\preferBnf.xbgf" />
<None Include="bnf\xbgf\refactorBnf.xbgf" />
<None Include="bnf\xbgf\stripTerminals.xbgf" />
<None Include="bnf\xbgf\stripWhitespace.xbgf" />
<None Include="xldf\completeDecorSection.xldf" />
<None Include="xldf\completeDecSection.xldf" />
<None Include="xldf\completeFoldSection.xldf" />
<None Include="xldf\completeIncSection.xldf" />
<None Include="xldf\completeIntro.xldf" />
<None Include="xldf\completeRefSection.xldf" />
<None Include="xldf\completeRevSections.xldf" />
<None Include="..\presentation\prettyprint\bnf.bgf">
<Link>xbgf\bnf\bnf.bgf</Link>
</None>
<None Include="..\presentation\prettyprint\bnf.lcf">
<Link>xbgf\bnf\bnf.lcf</Link>
</None>
<None Include="..\presentation\prettyprint\xbgf\designate.xbgf">
<Link>xbgf\bnf\xbgf\designate.xbgf</Link>
</None>
<None Include="..\presentation\prettyprint\xbgf\preferBnf.xbgf">
<Link>xbgf\bnf\xbgf\preferBnf.xbgf</Link>
</None>
<None Include="..\presentation\prettyprint\xbgf\refactorBnf.xbgf">
<Link>xbgf\bnf\xbgf\refactorBnf.xbgf</Link>
</None>
<None Include="..\presentation\prettyprint\xbgf\stripTerminals.xbgf">
<Link>xbgf\bnf\xbgf\stripTerminals.xbgf</Link>
</None>
<None Include="..\presentation\prettyprint\xbgf\stripWhitespace.xbgf">
<Link>xbgf\bnf\xbgf\stripWhitespace.xbgf</Link>
</None>
<None Include="xbgf\beautify_bgf.xbgf" />
<None Include="xbgf\beautify_xbgf.xbgf" />
<None Include="xbgf\xldf\completeDecorSection.xldf" />
<None Include="xbgf\xldf\completeDecSection.xldf" />
<None Include="xbgf\xldf\completeFoldSection.xldf" />
<None Include="xbgf\xldf\completeIncSection.xldf" />
<None Include="xbgf\xldf\completeIntro.xldf" />
<None Include="xbgf\xldf\completeRefSection.xldf" />
<None Include="xbgf\xldf\completeRevSections.xldf" />
</ItemGroup>
<ItemGroup>
<Content Include="..\..\shared\xsl\ldf2tex.xslt">
<Link>ldf2tex.xslt</Link>
</Content>
</ItemGroup>
<ItemGroup>
<Folder Include="xldf\xldf\" />
</ItemGroup>
</Project>
37 changes: 37 additions & 0 deletions topics/languedoc/xbgf/Makefile
@@ -0,0 +1,37 @@
validator = ../../shared/tools/checkxml

build: bgf_pretty.bgf xbgf.ldf
python ../../../topics/transformation/xldf/xldf.py xldf/completeIntro.xldf xbgf.ldf xbgf1.ldf
python ../../../topics/transformation/xldf/xldf.py xldf/completeFoldSection.xldf xbgf1.ldf xbgf2.ldf
python ../../../topics/transformation/xldf/xldf.py xldf/completeRefSection.xldf xbgf2.ldf xbgf3.ldf
python ../../../topics/transformation/xldf/xldf.py xldf/completeIncSection.xldf xbgf3.ldf xbgf4.ldf
python ../../../topics/transformation/xldf/xldf.py xldf/completeDecSection.xldf xbgf4.ldf xbgf5.ldf
python ../../../topics/transformation/xldf/xldf.py xldf/completeRevSections.xldf xbgf5.ldf xbgf6.ldf
python ../../../topics/transformation/xldf/xldf.py xldf/completeDecorSection.xldf xbgf6.ldf xbgf7.ldf
xsltproc ../../../shared/xsl/ldf2tex.xslt xbgf7.ldf > xbgf.tex
pdflatex -interaction=batchmode xbgf
pdflatex -interaction=batchmode xbgf

bgf_pretty.bgf:
../../../shared/tools/xsd2bgf ../../../shared/xsd/bgf.xsd bgf.bgf
../../../shared/tools/xbgf beautify_bgf.xbgf bgf.bgf bgf_pretty.bgf

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

rebuild:
make clean
make build

clean:
rm -f xbgf*.bgf xbgf*.ldf xbgf.html xbgf.fo xbgf.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
File renamed without changes.
File renamed without changes.
Expand Up @@ -50,7 +50,7 @@

<xldf:import-grammar>
<target>unfold-example</target>
<file>../transformation/xbgf/tests/unfold.bgf</file>
<file>../../transformation/xbgf/tests/unfold.bgf</file>
</xldf:import-grammar>
<xldf:append>
<where>unfold-example</where>
Expand All @@ -60,8 +60,8 @@
</xldf:append>
<xldf:import-sample>
<target>unfold-example</target>
<file>../transformation/xbgf/tests/unfold.xbgf</file>
<prettyprinter>../../shared/tools/xbgf2xbnf</prettyprinter>
<file>../../transformation/xbgf/tests/unfold.xbgf</file>
<prettyprinter>../../../shared/tools/xbgf2xbnf</prettyprinter>
</xldf:import-sample>
<xldf:append>
<where>unfold-example</where>
Expand All @@ -71,7 +71,7 @@
</xldf:append>
<xldf:import-grammar>
<target>unfold-example</target>
<file>../transformation/xbgf/tests/unfold.baseline</file>
<file>../../transformation/xbgf/tests/unfold.baseline</file>
</xldf:import-grammar>

<xldf:place>
Expand All @@ -88,7 +88,7 @@
</xldf:add-subsection>
<xldf:import-grammar>
<target>fold-example</target>
<file>../transformation/xbgf/tests/fold_nt.bgf</file>
<file>../../transformation/xbgf/tests/fold_nt.bgf</file>
</xldf:import-grammar>
<xldf:append>
<where>fold-example</where>
Expand All @@ -98,8 +98,8 @@
</xldf:append>
<xldf:import-sample>
<target>fold-example</target>
<file>../transformation/xbgf/tests/fold_nt.xbgf</file>
<prettyprinter>../../shared/tools/xbgf2xbnf</prettyprinter>
<file>../../transformation/xbgf/tests/fold_nt.xbgf</file>
<prettyprinter>../../../shared/tools/xbgf2xbnf</prettyprinter>
</xldf:import-sample>
<xldf:append>
<where>fold-example</where>
Expand All @@ -109,7 +109,7 @@
</xldf:append>
<xldf:import-grammar>
<target>fold-example</target>
<file>../transformation/xbgf/tests/fold_nt.baseline</file>
<file>../../transformation/xbgf/tests/fold_nt.baseline</file>
</xldf:import-grammar>

<xldf:place>
Expand Down Expand Up @@ -148,7 +148,7 @@
</xldf:add-subsection>
<xldf:import-grammar>
<target>inline-example</target>
<file>../transformation/xbgf/tests/inline.bgf</file>
<file>../../transformation/xbgf/tests/inline.bgf</file>
</xldf:import-grammar>
<xldf:append>
<where>inline-example</where>
Expand All @@ -158,8 +158,8 @@
</xldf:append>
<xldf:import-sample>
<target>inline-example</target>
<file>../transformation/xbgf/tests/inline.xbgf</file>
<prettyprinter>../../shared/tools/xbgf2xbnf</prettyprinter>
<file>../../transformation/xbgf/tests/inline.xbgf</file>
<prettyprinter>../../../shared/tools/xbgf2xbnf</prettyprinter>
</xldf:import-sample>
<xldf:append>
<where>inline-example</where>
Expand All @@ -169,7 +169,7 @@
</xldf:append>
<xldf:import-grammar>
<target>inline-example</target>
<file>../transformation/xbgf/tests/inline.baseline</file>
<file>../../transformation/xbgf/tests/inline.baseline</file>
</xldf:import-grammar>

<xldf:place>
Expand Down Expand Up @@ -202,7 +202,7 @@
</xldf:add-subsection>
<xldf:import-grammar>
<target>extract-example</target>
<file>../transformation/xbgf/tests/extract_subch.bgf</file>
<file>../../transformation/xbgf/tests/extract_subch.bgf</file>
</xldf:import-grammar>
<xldf:append>
<where>extract-example</where>
Expand All @@ -212,8 +212,8 @@
</xldf:append>
<xldf:import-sample>
<target>extract-example</target>
<file>../transformation/xbgf/tests/extract_subch.xbgf</file>
<prettyprinter>../../shared/tools/xbgf2xbnf</prettyprinter>
<file>../../transformation/xbgf/tests/extract_subch.xbgf</file>
<prettyprinter>../../../shared/tools/xbgf2xbnf</prettyprinter>
</xldf:import-sample>
<xldf:append>
<where>extract-example</where>
Expand All @@ -223,7 +223,7 @@
</xldf:append>
<xldf:import-grammar>
<target>extract-example</target>
<file>../transformation/xbgf/tests/extract_subch.baseline</file>
<file>../../transformation/xbgf/tests/extract_subch.baseline</file>
</xldf:import-grammar>

<xldf:place>
Expand Down
Expand Up @@ -95,7 +95,7 @@

<xldf:import-grammar>
<target>notation-section</target>
<file>bnf.bgf</file>
<file>../../presentation/prettyprint/bnf.bgf</file>
</xldf:import-grammar>

<xldf:append>
Expand Down Expand Up @@ -132,8 +132,8 @@

<xldf:import-sample>
<target>compatibility-section</target>
<file>bnf/xbgf/preferBnf.xbgf</file>
<prettyprinter>../../shared/tools/xbgf2xbnf</prettyprinter>
<file>../../presentation/prettyprint/xbgf/preferBnf.xbgf</file>
<prettyprinter>../../../shared/tools/xbgf2xbnf</prettyprinter>
</xldf:import-sample>

<xldf:append>
Expand All @@ -157,8 +157,8 @@

<xldf:import-sample>
<target>compatibility-section</target>
<file>bnf/xbgf/stripWhitespace.xbgf</file>
<prettyprinter>../../shared/tools/xbgf2xbnf</prettyprinter>
<file>../../presentation/prettyprint/xbgf/stripWhitespace.xbgf</file>
<prettyprinter>../../../shared/tools/xbgf2xbnf</prettyprinter>
</xldf:import-sample>

<xldf:append>
Expand All @@ -174,8 +174,8 @@

<xldf:import-sample>
<target>compatibility-section</target>
<file>bnf/xbgf/designate.xbgf</file>
<prettyprinter>../../shared/tools/xbgf2xbnf</prettyprinter>
<file>../../presentation/prettyprint/xbgf/designate.xbgf</file>
<prettyprinter>../../../shared/tools/xbgf2xbnf</prettyprinter>
</xldf:import-sample>

<xldf:append>
Expand All @@ -194,8 +194,8 @@

<xldf:import-sample>
<target>compatibility-section</target>
<file>bnf/xbgf/stripTerminals.xbgf</file>
<prettyprinter>../../shared/tools/xbgf2xbnf</prettyprinter>
<file>../../presentation/prettyprint/xbgf/stripTerminals.xbgf</file>
<prettyprinter>../../../shared/tools/xbgf2xbnf</prettyprinter>
</xldf:import-sample>

<xldf:append>
Expand All @@ -216,8 +216,8 @@

<xldf:import-sample>
<target>compatibility-section</target>
<file>bnf/xbgf/refactorBnf.xbgf</file>
<prettyprinter>../../shared/tools/xbgf2xbnf</prettyprinter>
<file>../../presentation/prettyprint/xbgf/refactorBnf.xbgf</file>
<prettyprinter>../../../shared/tools/xbgf2xbnf</prettyprinter>
</xldf:import-sample>

<xldf:append>
Expand Down

0 comments on commit a6441a3

Please sign in to comment.