Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
L^3_1 and L^3_2
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@1125 ab42f6e0-554d-0410-b580-99e487e6eeb2
- Loading branch information
1 parent
0e5dc24
commit 9da06a8
Showing
5 changed files
with
41 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<edd:config xmlns:edd="http://planet-sl.org/edd"> | ||
<!-- LLL reference is available at: http://www.cs.vu.nl/grammarware/gdk/ (page 2) --> | ||
<!-- Crafted by Vadim Zaytsev, http://grammarware.net --> | ||
<!-- This dialect definition covers the version published at LDTA --> | ||
<defining-symbol>:</defining-symbol> | ||
<terminator-symbol>;</terminator-symbol> | ||
<definition-separator-symbol>|</definition-separator-symbol> | ||
<!-- Only explicitly marked terminal symbols are allowed --> | ||
<start-terminal-symbol>"</start-terminal-symbol> | ||
<end-terminal-symbol>"</end-terminal-symbol> | ||
<!-- Postfix "repetition" modifiers --> | ||
<postfix-option-symbol>?</postfix-option-symbol> | ||
<postfix-repetition-star-symbol>*</postfix-repetition-star-symbol> | ||
<postfix-repetition-plus-symbol>+</postfix-repetition-plus-symbol> | ||
<!-- Added in order to support nonterminals from other namespaces --> | ||
<nonterminals-may-contain>-/</nonterminals-may-contain> | ||
<ignore> | ||
<!-- Many pretty-printed LLL files contain lots and lots of newlines --> | ||
<newline/> | ||
<!-- Official format for comments --> | ||
<lines-containing>#</lines-containing> | ||
</ignore> | ||
</edd:config> |
File renamed without changes.
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 |
---|---|---|
@@ -1,6 +1,13 @@ | ||
extract: | ||
${hunter} src.manually.fixed.txt ${dialectdir}/lll.edd raw.bgf | ||
${hunter} src.manually.fixed.txt ${dialectdir}/lll2.edd raw.bgf | ||
${gendir}/reroot2top raw.bgf reroot.prepared.xbgf | ||
${tooldir}/xbgf reroot.prepared.xbgf raw.bgf grammar.bgf | ||
|
||
roundtrip: | ||
make extract | ||
${tooldir}/bgf0edd2bnf grammar.bgf ${dialectdir}/lll2.edd tgt.grammar.txt | ||
cat src.manually.fixed.txt | grep -v '#' > src.prepared.nospace.txt | ||
perl -pi -w -e 's/\s//g;' tgt.grammar.txt src.prepared.nospace.txt | ||
diff tgt.grammar.txt src.prepared.nospace.txt | ||
|
||
include ../../Makefile.grammar |
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 |
---|---|---|
@@ -1,6 +1,13 @@ | ||
extract: | ||
${hunter} src.ldta.2002.txt ${dialectdir}/lll.edd raw.bgf | ||
${hunter} src.ldta.2002.txt ${dialectdir}/lll1.edd raw.bgf | ||
${gendir}/reroot2top raw.bgf reroot.prepared.xbgf | ||
${tooldir}/xbgf reroot.prepared.xbgf raw.bgf grammar.bgf | ||
|
||
roundtrip: | ||
make extract | ||
${tooldir}/bgf0edd2bnf grammar.bgf ${dialectdir}/lll1.edd tgt.grammar.txt | ||
cat src.ldta.2002.txt | grep -v '#' > src.prepared.nospace.txt | ||
perl -pi -w -e 's/\s//g;' tgt.grammar.txt src.prepared.nospace.txt | ||
diff tgt.grammar.txt src.prepared.nospace.txt | ||
|
||
include ../../Makefile.grammar |