Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
786e2a0
commit 0790c14
Showing
40 changed files
with
739 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?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>x</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>op</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>x</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</star> | ||
</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,19 @@ | ||
<?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>x</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>op</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>x</nonterminal> | ||
</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,19 @@ | ||
<?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>x</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>op</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>x</nonterminal> | ||
</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,15 @@ | ||
<?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">iteration-irl-1.bgf</src> | ||
<src name="b">iteration-irl-2.bgf</src> | ||
<src name="c">iteration-irl-3.bgf</src> | ||
</sources> | ||
<iteration> | ||
<name>x</name> | ||
<separator>op</separator> | ||
<src name="a">iterate</src> | ||
<src name="b">lassoc</src> | ||
<src name="c">rassoc</src> | ||
</iteration> | ||
</mbgf:sequence> |
13 changes: 13 additions & 0 deletions
13
topics/convergence/declarative/tests/iteration-nosep-1.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,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>x</nonterminal> | ||
<bgf:expression> | ||
<plus> | ||
<bgf:expression> | ||
<nonterminal>x</nonterminal> | ||
</bgf:expression> | ||
</plus> | ||
</bgf:expression> | ||
</bgf:production> | ||
</bgf:grammar> |
16 changes: 16 additions & 0 deletions
16
topics/convergence/declarative/tests/iteration-nosep-2.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,16 @@ | ||
<?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>x</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>x</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</bgf:production> | ||
</bgf:grammar> |
13 changes: 13 additions & 0 deletions
13
topics/convergence/declarative/tests/iteration-nosep-3.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,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>x</nonterminal> | ||
<bgf:expression> | ||
<plus> | ||
<bgf:expression> | ||
<nonterminal>x</nonterminal> | ||
</bgf:expression> | ||
</plus> | ||
</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,14 @@ | ||
<?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">iteration-nosep-1.bgf</src> | ||
<src name="b">iteration-nosep-2.bgf</src> | ||
<src name="c">iteration-nosep-3.bgf</src> | ||
</sources> | ||
<iteration> | ||
<name>x</name> | ||
<src name="a">iterate</src> | ||
<src name="b">lassoc</src> | ||
<src name="c">iterate</src> | ||
</iteration> | ||
</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
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,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>d</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>foo</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<terminal>bar</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,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>e</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>foo</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<terminal>bar</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,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>d</nonterminal> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>foo</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<terminal>bar</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,13 @@ | ||
<?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">naming-dde-1.bgf</src> | ||
<src name="b">naming-dde-2.bgf</src> | ||
<src name="c">naming-dde-3.bgf</src> | ||
</sources> | ||
<name-bind> | ||
<name>x</name> | ||
<src name="a,c">d</src> | ||
<src name="b">e</src> | ||
</name-bind> | ||
</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,9 @@ | ||
#!/bin/sh | ||
|
||
echo Copying... | ||
cp $1.mbgf $2.mbgf | ||
cp $1-1.bgf $2-1.bgf | ||
cp $1-2.bgf $2-2.bgf | ||
cp $1-3.bgf $2-3.bgf | ||
perl -pi -w -e 's/'$1'/'$2'/g;' $2.mbgf | ||
echo Test case copied. |
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,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>x</nonterminal> | ||
<bgf:expression> | ||
<choice> | ||
<bgf:expression> | ||
<nonterminal>x</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>op</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>x</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>y</nonterminal> | ||
</bgf:expression> | ||
</choice> | ||
</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,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>x</nonterminal> | ||
<bgf:expression> | ||
<choice> | ||
<bgf:expression> | ||
<nonterminal>x</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>op</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>x</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>y</nonterminal> | ||
</bgf:expression> | ||
</choice> | ||
</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,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>x</nonterminal> | ||
<bgf:expression> | ||
<nonterminal>x</nonterminal> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>x</nonterminal> | ||
<bgf:expression> | ||
<star> | ||
<bgf:expression> | ||
<sequence> | ||
<bgf:expression> | ||
<nonterminal>op</nonterminal> | ||
</bgf:expression> | ||
<bgf:expression> | ||
<nonterminal>x</nonterminal> | ||
</bgf:expression> | ||
</sequence> | ||
</bgf:expression> | ||
</star> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>x</nonterminal> | ||
<bgf:expression> | ||
<nonterminal>y</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,13 @@ | ||
<?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">topchoice-hhv-1.bgf</src> | ||
<src name="b">topchoice-hhv-2.bgf</src> | ||
<src name="c">topchoice-hhv-3.bgf</src> | ||
</sources> | ||
<top-choice> | ||
<name>x</name> | ||
<src name="a,b">horizontal</src> | ||
<src name="c">vertical</src> | ||
</top-choice> | ||
</mbgf:sequence> |
15 changes: 15 additions & 0 deletions
15
topics/convergence/declarative/tests/unification-easy-1.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,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>x</nonterminal> | ||
<bgf:expression> | ||
<terminal>a</terminal> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>y</nonterminal> | ||
<bgf:expression> | ||
<terminal>b</terminal> | ||
</bgf:expression> | ||
</bgf:production> | ||
</bgf:grammar> |
15 changes: 15 additions & 0 deletions
15
topics/convergence/declarative/tests/unification-easy-2.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,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"> | ||
<bgf:production> | ||
<nonterminal>x</nonterminal> | ||
<bgf:expression> | ||
<terminal>a</terminal> | ||
</bgf:expression> | ||
</bgf:production> | ||
<bgf:production> | ||
<nonterminal>x</nonterminal> | ||
<bgf:expression> | ||
<terminal>b</terminal> | ||
</bgf:expression> | ||
</bgf:production> | ||
</bgf:grammar> |
Oops, something went wrong.