Permalink
Browse files

more test cases

git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@815 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information...
grammarware committed Jul 11, 2010
1 parent 3d55c0b commit 7976b10bb108c1a52bed00e13bc2c85b02025807
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<bgf:production>
<nonterminal>foo</nonterminal>
<bgf:expression>
<any/>
</bgf:expression>
</bgf:production>
</bgf:grammar>
@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<bgf:production>
<nonterminal>foo</nonterminal>
<bgf:expression>
<choice>
<bgf:expression>
<epsilon/>
</bgf:expression>
<bgf:expression>
<value>string</value>
</bgf:expression>
</choice>
</bgf:expression>
</bgf:production>
</bgf:grammar>
@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<bgf:production>
<nonterminal>foo</nonterminal>
<bgf:expression>
<choice>
<bgf:expression>
<nonterminal>bar</nonterminal>
</bgf:expression>
<bgf:expression>
<terminal>wez</terminal>
</bgf:expression>
</choice>
</bgf:expression>
</bgf:production>
</bgf:grammar>
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<bgf:production>
<label>foo</label>
<nonterminal>bar</nonterminal>
<bgf:expression>
<terminal>wez</terminal>
</bgf:expression>
</bgf:production>
</bgf:grammar>
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<bgf:production>
<nonterminal>foo</nonterminal>
<bgf:expression>
<optional>
<bgf:expression>
<nonterminal>bar</nonterminal>
</bgf:expression>
</optional>
</bgf:expression>
</bgf:production>
</bgf:grammar>
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<bgf:production>
<nonterminal>foo</nonterminal>
<bgf:expression>
<optional>
<bgf:expression>
<terminal>bar</terminal>
</bgf:expression>
</optional>
</bgf:expression>
</bgf:production>
</bgf:grammar>
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<bgf:production>
<nonterminal>foo</nonterminal>
<bgf:expression>
<plus>
<bgf:expression>
<nonterminal>bar</nonterminal>
</bgf:expression>
</plus>
</bgf:expression>
</bgf:production>
</bgf:grammar>
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<bgf:production>
<nonterminal>foo</nonterminal>
<bgf:expression>
<plus>
<bgf:expression>
<terminal>bar</terminal>
</bgf:expression>
</plus>
</bgf:expression>
</bgf:production>
</bgf:grammar>
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<bgf:production>
<nonterminal>foo</nonterminal>
<bgf:expression>
<selectable>
<selector>bar</selector>
<bgf:expression>
<nonterminal>wez</nonterminal>
</bgf:expression>
</selectable>
</bgf:expression>
</bgf:production>
</bgf:grammar>
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<bgf:production>
<nonterminal>foo</nonterminal>
<bgf:expression>
<selectable>
<selector>bar</selector>
<bgf:expression>
<terminal>wez</terminal>
</bgf:expression>
</selectable>
</bgf:expression>
</bgf:production>
</bgf:grammar>
@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<bgf:production>
<nonterminal>foo</nonterminal>
<bgf:expression>
<choice>
<bgf:expression>
<value>int</value>
</bgf:expression>
<bgf:expression>
<epsilon/>
</bgf:expression>
</choice>
</bgf:expression>
</bgf:production>
</bgf:grammar>
@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<bgf:production>
<nonterminal>foo</nonterminal>
<bgf:expression>
<sequence>
<bgf:expression>
<terminal>bar</terminal>
</bgf:expression>
<bgf:expression>
<nonterminal>wez</nonterminal>
</bgf:expression>
</sequence>
</bgf:expression>
</bgf:production>
</bgf:grammar>
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<bgf:production>
<nonterminal>foo</nonterminal>
<bgf:expression>
<star>
<bgf:expression>
<nonterminal>bar</nonterminal>
</bgf:expression>
</star>
</bgf:expression>
</bgf:production>
</bgf:grammar>
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<bgf:production>
<nonterminal>foo</nonterminal>
<bgf:expression>
<star>
<bgf:expression>
<terminal>bar</terminal>
</bgf:expression>
</star>
</bgf:expression>
</bgf:production>
</bgf:grammar>
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<bgf:production>
<nonterminal>foo</nonterminal>
<bgf:expression>
<terminal>x</terminal>
</bgf:expression>
</bgf:production>
</bgf:grammar>

0 comments on commit 7976b10

Please sign in to comment.