Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more test cases (not all of them pass yet)
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@1092 ab42f6e0-554d-0410-b580-99e487e6eeb2
- Loading branch information
1 parent
5e8a1df
commit b85d427
Showing
51 changed files
with
1,090 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
topics/recovery/hunter/tests/6-confix-conflict-star-option.bgf
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,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>foo</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<optional> | ||
<bgf:expression> | ||
<nonterminal>a</nonterminal> | ||
</bgf:expression> | ||
</optional> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>b</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>bar</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>a</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<nonterminal>b</nonterminal> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>wez</nonterminal> | ||
<bgf:expression> | ||
<nonterminal>foo</nonterminal> | ||
</bgf:expression> | ||
</bgf:production> | ||
</bgf:grammar> |
9 changes: 9 additions & 0 deletions
9
topics/recovery/hunter/tests/6-confix-conflict-star-option.edd
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,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<edd:config xmlns:edd="http://planet-sl.org/edd"> | ||
<defining-symbol>:</defining-symbol> | ||
<terminator-symbol>\n</terminator-symbol> | ||
<start-repetition-star-symbol>[</start-repetition-star-symbol> | ||
<end-repetition-star-symbol>]*</end-repetition-star-symbol> | ||
<start-repetition-option-symbol>[</start-repetition-option-symbol> | ||
<end-repetition-option-symbol>]?</end-repetition-option-symbol> | ||
</edd:config> |
3 changes: 3 additions & 0 deletions
3
topics/recovery/hunter/tests/6-confix-conflict-star-option.src
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,3 @@ | ||
foo : [a]? b | ||
bar : a [b]* | ||
wez : foo |
43 changes: 43 additions & 0 deletions
43
topics/recovery/hunter/tests/6-confix-conflict-star-plus.bgf
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,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>foo</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<plus> | ||
<bgf:expression> | ||
<nonterminal>a</nonterminal> | ||
</bgf:expression> | ||
</plus> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>b</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>bar</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>a</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<nonterminal>b</nonterminal> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>wez</nonterminal> | ||
<bgf:expression> | ||
<nonterminal>foo</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,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<edd:config xmlns:edd="http://planet-sl.org/edd"> | ||
<defining-symbol>:</defining-symbol> | ||
<terminator-symbol>\n</terminator-symbol> | ||
<start-repetition-star-symbol>[</start-repetition-star-symbol> | ||
<end-repetition-star-symbol>]*</end-repetition-star-symbol> | ||
<start-repetition-plus-symbol>[</start-repetition-plus-symbol> | ||
<end-repetition-plus-symbol>]+</end-repetition-plus-symbol> | ||
</edd:config> |
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,3 @@ | ||
foo : [a]+ b | ||
bar : a [b]* | ||
wez : foo |
70 changes: 70 additions & 0 deletions
70
topics/recovery/hunter/tests/6-confix-conflict-star-sepplus.bgf
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,70 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>foo</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>a</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>b</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>c</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>b</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>d</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>bar</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>a</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>b</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>c</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>d</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>wez</nonterminal> | ||
<bgf:expression> | ||
<nonterminal>foo</nonterminal> | ||
</bgf:expression> | ||
</bgf:production> | ||
</bgf:grammar> |
9 changes: 9 additions & 0 deletions
9
topics/recovery/hunter/tests/6-confix-conflict-star-sepplus.edd
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,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<edd:config xmlns:edd="http://planet-sl.org/edd"> | ||
<defining-symbol>:</defining-symbol> | ||
<terminator-symbol>\n</terminator-symbol> | ||
<start-repetition-star-symbol>[</start-repetition-star-symbol> | ||
<end-repetition-star-symbol>]</end-repetition-star-symbol> | ||
<start-seplist-plus-symbol>[</start-seplist-plus-symbol> | ||
<end-seplist-plus-symbol>]}+</end-seplist-plus-symbol> | ||
</edd:config> |
3 changes: 3 additions & 0 deletions
3
topics/recovery/hunter/tests/6-confix-conflict-star-sepplus.src
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,3 @@ | ||
foo : a [b c]}+ d | ||
bar : a [b c] d | ||
wez : foo |
74 changes: 74 additions & 0 deletions
74
topics/recovery/hunter/tests/6-confix-conflict-star-sepstar.bgf
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,74 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>foo</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>a</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<optional> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>b</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>c</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>b</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</optional> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>d</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>bar</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>a</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>b</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>c</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>d</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>wez</nonterminal> | ||
<bgf:expression> | ||
<nonterminal>foo</nonterminal> | ||
</bgf:expression> | ||
</bgf:production> | ||
</bgf:grammar> |
9 changes: 9 additions & 0 deletions
9
topics/recovery/hunter/tests/6-confix-conflict-star-sepstar.edd
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,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<edd:config xmlns:edd="http://planet-sl.org/edd"> | ||
<defining-symbol>:</defining-symbol> | ||
<terminator-symbol>\n</terminator-symbol> | ||
<start-repetition-star-symbol>[</start-repetition-star-symbol> | ||
<end-repetition-star-symbol>]</end-repetition-star-symbol> | ||
<start-seplist-star-symbol>[</start-seplist-star-symbol> | ||
<end-seplist-star-symbol>]}*</end-seplist-star-symbol> | ||
</edd:config> |
3 changes: 3 additions & 0 deletions
3
topics/recovery/hunter/tests/6-confix-conflict-star-sepstar.src
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,3 @@ | ||
foo : a [b c]}* d | ||
bar : a [b c] d | ||
wez : foo |
35 changes: 35 additions & 0 deletions
35
topics/recovery/hunter/tests/6-confix-conflict-unresolvable.bgf
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,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>foo</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<terminal>[</terminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>b</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>bar</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>b</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<terminal>]</terminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>wez</nonterminal> | ||
<bgf:expression> | ||
<nonterminal>foo</nonterminal> | ||
</bgf:expression> | ||
</bgf:production> | ||
</bgf:grammar> |
7 changes: 7 additions & 0 deletions
7
topics/recovery/hunter/tests/6-confix-conflict-unresolvable.edd
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,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<edd:config xmlns:edd="http://planet-sl.org/edd"> | ||
<defining-symbol>:</defining-symbol> | ||
<terminator-symbol>\n</terminator-symbol> | ||
<start-repetition-star-symbol>[</start-repetition-star-symbol> | ||
<end-repetition-star-symbol>]</end-repetition-star-symbol> | ||
</edd:config> |
3 changes: 3 additions & 0 deletions
3
topics/recovery/hunter/tests/6-confix-conflict-unresolvable.src
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,3 @@ | ||
foo : [ a | ||
bar : b ] | ||
wez : foo |
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,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>foo</nonterminal> | ||
<bgf:expression> | ||
<nonterminal>a</nonterminal> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>bar</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>a</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>b</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>c</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>d</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>wez</nonterminal> | ||
<bgf:expression> | ||
<nonterminal>foo</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,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<edd:config xmlns:edd="http://planet-sl.org/edd"> | ||
<defining-symbol>:</defining-symbol> | ||
<terminator-symbol>\n</terminator-symbol> | ||
<start-group-symbol>(</start-group-symbol> | ||
<end-group-symbol>)</end-group-symbol> | ||
</edd:config> |
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,3 @@ | ||
foo : (a) | ||
bar : a (b c) d | ||
wez : foo |
Oops, something went wrong.