Skip to content

Commit

Permalink
BGF test set
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@814 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Jul 11, 2010
1 parent 7b1117f commit 3d55c0b
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 0 deletions.
4 changes: 4 additions & 0 deletions download/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ all:

install: install-antlr install-fop install-msv install-et install-pp install-generateDS install-gdk

install-xig:
#curl -k http://labsewiki.isti.cnr.it/data/media/projects/taxi/taxi.exe
curl -k http://downloads.sourceforge.net/project/xml-xig/xml-xig/xml-xig%200.1/xml-xig-0.1.1.jar?use_mirror=citylan&ts=1278861268 >xml-xig-0.1.1.jar

install-gdk:
curl -k http://gdk.sourceforge.net/gdk-1.4.4.tar.gz > gdk-1.4.4.tar.gz
gzip -d gdk-1.4.4.tar.gz
Expand Down
9 changes: 9 additions & 0 deletions topics/metasyntax/bgf/tests/empty.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<bgf:production>
<nonterminal>foo</nonterminal>
<bgf:expression>
<empty/>
</bgf:expression>
</bgf:production>
</bgf:grammar>
9 changes: 9 additions & 0 deletions topics/metasyntax/bgf/tests/epsilon.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<bgf:production>
<nonterminal>foo</nonterminal>
<bgf:expression>
<epsilon/>
</bgf:expression>
</bgf:production>
</bgf:grammar>
10 changes: 10 additions & 0 deletions topics/metasyntax/bgf/tests/root.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<root>foo</root>
<bgf:production>
<nonterminal>foo</nonterminal>
<bgf:expression>
<nonterminal>bar</nonterminal>
</bgf:expression>
</bgf:production>
</bgf:grammar>
17 changes: 17 additions & 0 deletions topics/metasyntax/bgf/tests/roots.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<root>foo</root>
<root>bar</root>
<bgf:production>
<nonterminal>foo</nonterminal>
<bgf:expression>
<terminal>x</terminal>
</bgf:expression>
</bgf:production>
<bgf:production>
<nonterminal>bar</nonterminal>
<bgf:expression>
<terminal>x</terminal>
</bgf:expression>
</bgf:production>
</bgf:grammar>
9 changes: 9 additions & 0 deletions topics/metasyntax/bgf/tests/value-int.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<bgf:production>
<nonterminal>foo</nonterminal>
<bgf:expression>
<value>int</value>
</bgf:expression>
</bgf:production>
</bgf:grammar>
9 changes: 9 additions & 0 deletions topics/metasyntax/bgf/tests/value-string.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<bgf:production>
<nonterminal>foo</nonterminal>
<bgf:expression>
<value>string</value>
</bgf:expression>
</bgf:production>
</bgf:grammar>
Binary file removed topics/metasyntax/metasyntax.suo
Binary file not shown.

0 comments on commit 3d55c0b

Please sign in to comment.