Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rsc2bgf delivers root(s); some tool progress; XEDD has become so good…
… that I'm slowly releasing it git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@1136 ab42f6e0-554d-0410-b580-99e487e6eeb2
- Loading branch information
1 parent
1196f9f
commit efbd9cc
Showing
8 changed files
with
556 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.0"?> | ||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:edd="http://planet-sl.org/edd" xmlns:xedd="http://planet-sl.org/xedd" targetNamespace="http://planet-sl.org/xedd"> | ||
<xsd:annotation> | ||
<xsd:documentation> | ||
EBNF Dialect Definition Transformation operator suite | ||
(Notation Specification Transformation) | ||
</xsd:documentation> | ||
</xsd:annotation> | ||
<!-- | ||
TODO: edd.xsd is legacy for now; needs major update, and I mean MAJOR | ||
<xsd:import namespace="http://planet-sl.org/edd" schemaLocation="edd.xsd"/> | ||
--> | ||
<xsd:element name="evolution"> | ||
<xsd:annotation> | ||
<xsd:documentation> | ||
Sequential composition of multiple transformations. | ||
</xsd:documentation> | ||
</xsd:annotation> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:group ref="xedd:step" minOccurs="0" maxOccurs="unbounded"/> | ||
</xsd:sequence> | ||
</xsd:complexType> | ||
</xsd:element> | ||
<xsd:group name="step"> | ||
<xsd:choice> | ||
<xsd:element ref="xedd:rename"/> | ||
</xsd:choice> | ||
</xsd:group> | ||
<xsd:element name="rename"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element name="metasymbol" type="xedd:metasymbols"/> | ||
<xsd:element name="from" type="xsd:string"/> | ||
<xsd:element name="to" type="xsd:string"/> | ||
</xsd:sequence> | ||
</xsd:complexType> | ||
</xsd:element> | ||
<xsd:simpleType name="metasymbols"> | ||
<xsd:restriction base="xsd:token"> | ||
<xsd:enumeration value="terminator"/> | ||
<xsd:enumeration value="defining"/> | ||
<xsd:enumeration value="definition-separator"/> | ||
</xsd:restriction> | ||
</xsd:simpleType> | ||
</xsd:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
all: | ||
|
||
try: | ||
../../recovery/hunter/hunter.py lll1t.doc.lll1t lll1t.edd lll1n.doc.bgf | ||
../../../shared/tools/cbgf2xbgf lll1.spec2doc.cbgf /dev/null lll1.reverse.xbgf | ||
../../../shared/tools/xbgf lll1.reverse.xbgf lll1n.doc.bgf lll1n.spec.bgf | ||
#../../../shared/tools/cbgf lll1t.coupled.cbgf | ||
gdt lll1.spec.bgf lll1t.spec.bgf | ||
|
||
specprop: | ||
# This scenario propagates changes from the notation to its parser, to its grammar, to its beautified grammar and to its definition "in itself" | ||
./xedd.py lll1.try.xedd lll1.edd lll1t.edd lll1t.coupled.cbgf | ||
# need to learn to run Rascal from command line | ||
cp backup/lll1t.rsc . | ||
../../../shared/tools/rsc2bgf lll1t.rsc lll1t.raw.bgf | ||
../../../shared/tools/normbgf lll1t.raw.bgf lll1t.spec.bgf | ||
../../../shared/tools/cbgf lll1t.coupled.cbgf lll1.spec.bgf lll1t.spec.bgf | ||
../../../shared/tools/cbgf2xbgf lll1.spec2doc.cbgf lll1.forward.xbgf /dev/null | ||
../../../shared/tools/xbgf lll1.forward.xbgf lll1t.spec.bgf lll1t.doc.bgf | ||
../../../shared/tools/reformat lll1t.doc.bgf lll1t.edd lll1t.doc.lll1t | ||
|
||
edd: | ||
cp ../../../shared/edd/lll1.edd lll1.edd | ||
cp ../../../shared/edd/lll2.edd lll2.edd | ||
|
||
rsc: edd | ||
# need to learn to run Rascal from command line | ||
cp ../../../../personal/work/gnf/src/bgf2rsc/GeneratedLLL.rsc . | ||
cp backup/lll?.rsc . | ||
|
||
bgfspec: rsc | ||
../../../shared/tools/rsc2bgf lll1.rsc lll1.raw.bgf | ||
../../../shared/tools/normbgf lll1.raw.bgf lll1.spec.bgf | ||
../../../shared/tools/rsc2bgf lll2.rsc lll2.raw.bgf | ||
../../../shared/tools/normbgf lll2.raw.bgf lll2.spec.bgf | ||
|
||
bgfdoc: | ||
cp ../../grammars/metasyntax/lll-ldta/grammar.bgf lll1.doc.bgf | ||
../../../shared/tools/reformat lll1.doc.bgf lll1.edd lll1.doc.lll1 | ||
cp ../../grammars/metasyntax/lll-kort/grammar.bgf lll2.doc.bgf | ||
../../../shared/tools/reformat lll2.doc.bgf lll2.edd lll2.doc.lll2 | ||
|
||
bgfspecndoc: bgfspec bgfdoc | ||
../../../shared/tools/cbgf lll1.spec2doc.cbgf lll1.spec.bgf lll1.doc.bgf | ||
|
||
get: | ||
cp ../../grammars/metasyntax/lll-kort/src.manually.fixed.txt lll-gdkref.lll | ||
cp ../../grammars/metasyntax/lll-ldta/src.ldta.2002.txt lll-ldta.lll | ||
cd ../../grammars/metasyntax/lll1-edd && make extract | ||
cd ../../grammars/metasyntax/lll2-edd && make extract | ||
../../../shared/tools/reformat ../../grammars/metasyntax/lll1-edd/grammar.bgf lll1.edd lll1.lll | ||
../../../shared/tools/reformat ../../grammars/metasyntax/lll2-edd/grammar.bgf lll2.edd lll2.lll | ||
|
||
clean: | ||
rm -f lll?.edd GeneratedLLL.rsc lll?.rsc lll?.raw.bgf lll?.spec.bgf lll?.doc.bgf *.xbgf *.lll?? *.res |
Oops, something went wrong.