Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
detour implemented; unterminalize killed
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@549 ab42f6e0-554d-0410-b580-99e487e6eeb2
- Loading branch information
1 parent
0a41414
commit aa8330b
Showing
5 changed files
with
69 additions
and
6 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,23 @@ | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<label>constant</label> | ||
<nonterminal>expr</nonterminal> | ||
<bgf:expression> | ||
<nonterminal>int</nonterminal> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<label>neg</label> | ||
<nonterminal>expr</nonterminal> | ||
<bgf:expression> | ||
<nonterminal>expr</nonterminal> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<label>bracket</label> | ||
<nonterminal>expr</nonterminal> | ||
<bgf:expression> | ||
<nonterminal>expr</nonterminal> | ||
</bgf:expression> | ||
</bgf:production> | ||
</bgf: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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<xns1:grammar xmlns:xns1="http://planet-sl.org/bgf"> | ||
<xns1:production> | ||
<label>constant</label> | ||
<nonterminal>expr</nonterminal> | ||
<xns1:expression> | ||
<nonterminal>int</nonterminal> | ||
</xns1:expression> | ||
</xns1:production> | ||
<xns1:production> | ||
<label>neg</label> | ||
<nonterminal>expr</nonterminal> | ||
<xns1:expression> | ||
<nonterminal>expr</nonterminal> | ||
</xns1:expression> | ||
</xns1:production> | ||
</xns1: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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<xbgf:sequence | ||
xmlns:bgf="http://planet-sl.org/bgf" | ||
xmlns:xbgf="http://planet-sl.org/xbgf"> | ||
<xbgf:detour> | ||
<bgf:production> | ||
<label>bracket</label> | ||
<nonterminal>expr</nonterminal> | ||
<bgf:expression> | ||
<nonterminal>expr</nonterminal> | ||
</bgf:expression> | ||
</bgf:production> | ||
</xbgf:detour> | ||
</xbgf:sequence> |