-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
the first complicated tridirectional test case: folding + labels
- Loading branch information
1 parent
fc1839e
commit 063b981
Showing
14 changed files
with
421 additions
and
14 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,46 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>x</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>y</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>z</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>z</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>begin</selector> | ||
<bgf:expression> | ||
<terminal>(</terminal> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<nonterminal>foo</nonterminal> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>end</selector> | ||
<bgf:expression> | ||
<terminal>)</terminal> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
</sequence> | ||
</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,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>x</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>y</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>begin</selector> | ||
<bgf:expression> | ||
<terminal>(</terminal> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<nonterminal>foo</nonterminal> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>end</selector> | ||
<bgf:expression> | ||
<terminal>)</terminal> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
</sequence> | ||
</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,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>x</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>y</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>z</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>z</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<terminal>(</terminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<nonterminal>foo</nonterminal> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<terminal>)</terminal> | ||
</bgf:expression> | ||
</sequence> | ||
</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,84 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mbgf:sequence xmlns:bgf="http://planet-sl.org/bgf" xmlns:mbgf="http://planet-sl.org/mbgf"> | ||
<sources> | ||
<src name="a">fold-labels-fl-1.bgf</src> | ||
<src name="b">fold-labels-fl-2.bgf</src> | ||
<src name="c">fold-labels-fl-3.bgf</src> | ||
</sources> | ||
<folding id="fld" depends="sels:deanonymize"> | ||
<src name="a,c"> | ||
<bgf:production> | ||
<nonterminal>z</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>begin</selector> | ||
<bgf:expression> | ||
<terminal>(</terminal> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<nonterminal>foo</nonterminal> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>end</selector> | ||
<bgf:expression> | ||
<terminal>)</terminal> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
</src> | ||
</folding> | ||
<selectables id="sels" depends="fld:extract"> | ||
<src name="a,b"> | ||
<bgf:production> | ||
<nonterminal>z</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<marked> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>begin</selector> | ||
<bgf:expression> | ||
<terminal>(</terminal> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
</marked> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<nonterminal>foo</nonterminal> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<marked> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>end</selector> | ||
<bgf:expression> | ||
<terminal>)</terminal> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
</marked> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
</src> | ||
</selectables> | ||
</mbgf:sequence> |
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" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>x</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>y</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>z</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>z</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>begin</selector> | ||
<bgf:expression> | ||
<terminal>(</terminal> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<nonterminal>foo</nonterminal> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>end</selector> | ||
<bgf:expression> | ||
<terminal>)</terminal> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
</sequence> | ||
</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,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>x</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>y</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>begin</selector> | ||
<bgf:expression> | ||
<terminal>(</terminal> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<nonterminal>foo</nonterminal> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<selectable> | ||
<selector>end</selector> | ||
<bgf:expression> | ||
<terminal>)</terminal> | ||
</bgf:expression> | ||
</selectable> | ||
</bgf:expression> | ||
</sequence> | ||
</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,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>x</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>y</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>z</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>z</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<terminal>(</terminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<nonterminal>foo</nonterminal> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<terminal>)</terminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
</bgf:grammar> |
Oops, something went wrong.