Permalink
Browse files

enforcing naming conventions further; more consistent testing

git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@893 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information...
grammarware committed Dec 9, 2010
1 parent b7f3f1a commit 43cc5a07de7514d787ecadb7993c9d7f267ebf9c
@@ -0,0 +1,5 @@
test:
cat tests/list | xargs -n1 ./testperform
clean:
rm -f *~ *.bgf
@@ -0,0 +1,6 @@
#!/bin/sh
echo [Test Case] $1
../../../shared/tools/xsd2bgf $1 `basename $1 .xsd`.bgf || exit -1
../../../shared/tools/validate bgf `basename $1 .xsd`.bgf || exit -1
../../../shared/tools/gdt `basename $1 .xsd`.bgf tests/`basename $1 .xsd`.baseline || exit -1
@@ -0,0 +1,240 @@
<?xml version="1.0" encoding="UTF-8"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">
<root>grammar</root>
<root>production</root>
<root>expression</root>
<bgf:production>
<nonterminal>grammar</nonterminal>
<bgf:expression>
<sequence>
<bgf:expression>
<star>
<bgf:expression>
<selectable>
<selector>root</selector>
<bgf:expression>
<nonterminal>nonterminal</nonterminal>
</bgf:expression>
</selectable>
</bgf:expression>
</star>
</bgf:expression>
<bgf:expression>
<star>
<bgf:expression>
<nonterminal>production</nonterminal>
</bgf:expression>
</star>
</bgf:expression>
</sequence>
</bgf:expression>
</bgf:production>
<bgf:production>
<nonterminal>production</nonterminal>
<bgf:expression>
<sequence>
<bgf:expression>
<optional>
<bgf:expression>
<selectable>
<selector>label</selector>
<bgf:expression>
<nonterminal>label</nonterminal>
</bgf:expression>
</selectable>
</bgf:expression>
</optional>
</bgf:expression>
<bgf:expression>
<selectable>
<selector>nonterminal</selector>
<bgf:expression>
<nonterminal>nonterminal</nonterminal>
</bgf:expression>
</selectable>
</bgf:expression>
<bgf:expression>
<nonterminal>expression</nonterminal>
</bgf:expression>
</sequence>
</bgf:expression>
</bgf:production>
<bgf:production>
<nonterminal>expression</nonterminal>
<bgf:expression>
<choice>
<bgf:expression>
<selectable>
<selector>epsilon</selector>
<bgf:expression>
<epsilon/>
</bgf:expression>
</selectable>
</bgf:expression>
<bgf:expression>
<selectable>
<selector>empty</selector>
<bgf:expression>
<epsilon/>
</bgf:expression>
</selectable>
</bgf:expression>
<bgf:expression>
<selectable>
<selector>value</selector>
<bgf:expression>
<nonterminal>value</nonterminal>
</bgf:expression>
</selectable>
</bgf:expression>
<bgf:expression>
<selectable>
<selector>any</selector>
<bgf:expression>
<epsilon/>
</bgf:expression>
</selectable>
</bgf:expression>
<bgf:expression>
<selectable>
<selector>terminal</selector>
<bgf:expression>
<nonterminal>terminal</nonterminal>
</bgf:expression>
</selectable>
</bgf:expression>
<bgf:expression>
<selectable>
<selector>nonterminal</selector>
<bgf:expression>
<nonterminal>nonterminal</nonterminal>
</bgf:expression>
</selectable>
</bgf:expression>
<bgf:expression>
<selectable>
<selector>selectable</selector>
<bgf:expression>
<sequence>
<bgf:expression>
<selectable>
<selector>selector</selector>
<bgf:expression>
<nonterminal>selector</nonterminal>
</bgf:expression>
</selectable>
</bgf:expression>
<bgf:expression>
<nonterminal>expression</nonterminal>
</bgf:expression>
</sequence>
</bgf:expression>
</selectable>
</bgf:expression>
<bgf:expression>
<selectable>
<selector>sequence</selector>
<bgf:expression>
<plus>
<bgf:expression>
<nonterminal>expression</nonterminal>
</bgf:expression>
</plus>
</bgf:expression>
</selectable>
</bgf:expression>
<bgf:expression>
<selectable>
<selector>marked</selector>
<bgf:expression>
<nonterminal>expression</nonterminal>
</bgf:expression>
</selectable>
</bgf:expression>
<bgf:expression>
<selectable>
<selector>choice</selector>
<bgf:expression>
<plus>
<bgf:expression>
<nonterminal>expression</nonterminal>
</bgf:expression>
</plus>
</bgf:expression>
</selectable>
</bgf:expression>
<bgf:expression>
<selectable>
<selector>optional</selector>
<bgf:expression>
<nonterminal>expression</nonterminal>
</bgf:expression>
</selectable>
</bgf:expression>
<bgf:expression>
<selectable>
<selector>plus</selector>
<bgf:expression>
<nonterminal>expression</nonterminal>
</bgf:expression>
</selectable>
</bgf:expression>
<bgf:expression>
<selectable>
<selector>star</selector>
<bgf:expression>
<nonterminal>expression</nonterminal>
</bgf:expression>
</selectable>
</bgf:expression>
</choice>
</bgf:expression>
</bgf:production>
<bgf:production>
<nonterminal>value</nonterminal>
<bgf:expression>
<choice>
<bgf:expression>
<selectable>
<selector>int</selector>
<bgf:expression>
<epsilon/>
</bgf:expression>
</selectable>
</bgf:expression>
<bgf:expression>
<selectable>
<selector>string</selector>
<bgf:expression>
<epsilon/>
</bgf:expression>
</selectable>
</bgf:expression>
</choice>
</bgf:expression>
</bgf:production>
<bgf:production>
<nonterminal>label</nonterminal>
<bgf:expression>
<value>string</value>
</bgf:expression>
</bgf:production>
<bgf:production>
<nonterminal>nonterminal</nonterminal>
<bgf:expression>
<value>string</value>
</bgf:expression>
</bgf:production>
<bgf:production>
<nonterminal>selector</nonterminal>
<bgf:expression>
<value>string</value>
</bgf:expression>
</bgf:production>
<bgf:production>
<nonterminal>terminal</nonterminal>
<bgf:expression>
<value>string</value>
</bgf:expression>
</bgf:production>
</bgf:grammar>
Oops, something went wrong.

0 comments on commit 43cc5a0

Please sign in to comment.