Skip to content

Commit

Permalink
a simple test data set generator for BGF
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@822 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Aug 14, 2010
1 parent 1bb1309 commit d9ceeac
Show file tree
Hide file tree
Showing 3,736 changed files with 3,863 additions and 37 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
128 changes: 128 additions & 0 deletions shared/python/generateBGF.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
#!/usr/bin/python

import sys

basic_elements = ['e','o','i','s','a','t','n']
unary_modifiers = ['z','m','q','p','k']
binary_modifiers = ['f','c']
names_subsets = ([],['foo'],['foo','bar'])
counter = 0

def main(dir):
global counter
# solitary basic elements
for x in basic_elements:
dump_file(generate_expression(x),dir+'/'+x+'.bgf')
print counter,'test cases with basic elements generated successfully'
counter = 0
# once wrapped basic elements
for x in unary_modifiers:
for y in basic_elements:
dump_file(wrap_expression(x,generate_expression(y)),dir+'/'+x+y+'.bgf')
print counter,'test cases with wrapped basic elements generated successfully'
counter = 0
# twice wrapped basic elements
for x in unary_modifiers:
for y in unary_modifiers:
for z in basic_elements:
dump_file(wrap_expression(x,wrap_expression(y,generate_expression(z))),dir+'/'+x+y+z+'.bgf')
print counter,'test cases with twice wrapped basic elements generated successfully'
counter = 0
# sequences and choices
for x in binary_modifiers:
for y in basic_elements:
for z in basic_elements:
dump_file(wrap_expression(x,generate_expression(y)+generate_expression(z)),dir+'/'+x+y+z+'.bgf')
print counter,'test cases with sequences and choices of length 2 generated successfully'
counter = 0
# longer sequences and choices
for x in binary_modifiers:
for a in basic_elements:
for b in basic_elements:
for c in basic_elements:
dump_file(wrap_expression(x,generate_expression(a)+generate_expression(b)+generate_expression(c)),dir+'/'+x+a+b+c+'.bgf')
print counter,'test cases with sequences and choices of length 3 generated successfully'
counter = 0
# nested sequences and choices
for x in binary_modifiers:
for y in binary_modifiers:
for a in basic_elements:
for b in basic_elements:
for c in basic_elements:
dump_file(wrap_expression(x,wrap_expression(y,generate_expression(a)+generate_expression(b))+generate_expression(c)),dir+'/'+x+y+a+b+c+'.bgf')
dump_file(wrap_expression(x,generate_expression(a)+wrap_expression(y,generate_expression(b)+generate_expression(c))),dir+'/'+x+a+y+b+c+'.bgf')
print counter,'test cases with sequences and choices of nested depth 2 generated successfully'
counter = 0
# specific cases
for x in names_subsets:
for y in names_subsets:
dump_specific_file(x,y,dir+'/r'+str(len(x))+'l'+str(len(y))+'.bgf')
print counter,'test cases with multiple labelled productions generated successfully'
return

def dump_file(expr,fname):
global counter
f = open(fname,'w')
f.write('<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal>')
f.write(expr)
f.write('</bgf:production></bgf:grammar>')
f.close()
counter += 1

def dump_specific_file(roots,labels,fname):
global counter
f = open(fname,'w')
f.write('<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf">')
for r in roots:
f.write('<root>'+r+'</root>')
for l in labels:
f.write('<bgf:production><label>l'+l+'</label><nonterminal>'+l+'</nonterminal>'+generate_expression('e')+'</bgf:production>')
f.write('</bgf:grammar>')
f.close()
counter += 1

def generate_expression(code):
# basic_elements = ['e','o','i','s','a','t','n']
if code == 'e':
expr = '<epsilon/>'
elif code == 'o':
expr = '<empty/>'
elif code == 'i':
expr = '<value>int</value>'
elif code == 's':
expr = '<value>string</value>'
elif code == 'a':
expr = '<any/>'
elif code == 't':
expr = '<terminal>x</terminal>'
elif code == 'n':
expr = '<nonterminal>x</nonterminal>'
return '<bgf:expression>'+expr+'</bgf:expression>'

def wrap_expression(code,expr):
# unary_modifiers = ['z','m','q','p','k']
if code == 'z':
expr = '<selectable><selector>x</selector>'+expr+'</selectable>'
elif code == 'm':
expr = '<marked>'+expr+'</marked>'
elif code == 'q':
expr = '<optional>'+expr+'</optional>'
elif code == 'p':
expr = '<plus>'+expr+'</plus>'
elif code == 'k':
expr = '<star>'+expr+'</star>'
elif code == 'f':
expr = '<sequence>'+expr+'</sequence>'
elif code == 'c':
expr = '<choice>'+expr+'</choice>'
return '<bgf:expression>'+expr+'</bgf:expression>'

if __name__ == "__main__":
if len(sys.argv) == 2:
main(sys.argv[1])
else:
print '''BGF Test Set Generator
Usage:'''
print ' ',sys.argv[0],'<input xldf file>','<input ldf file>','<output ldf file>'
sys.exit(1)
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/caa.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><any/></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/caaa.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><any/></bgf:expression><bgf:expression><any/></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/caae.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><any/></bgf:expression><bgf:expression><epsilon/></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/caai.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><any/></bgf:expression><bgf:expression><value>int</value></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/caan.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><any/></bgf:expression><bgf:expression><nonterminal>x</nonterminal></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/caao.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><any/></bgf:expression><bgf:expression><empty/></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/caas.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><any/></bgf:expression><bgf:expression><value>string</value></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/caat.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><any/></bgf:expression><bgf:expression><terminal>x</terminal></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacaa.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><any/></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacae.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><epsilon/></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacai.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><value>int</value></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacan.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><nonterminal>x</nonterminal></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacao.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><empty/></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacas.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><value>string</value></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacat.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><terminal>x</terminal></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacea.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><epsilon/></bgf:expression><bgf:expression><any/></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacee.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><epsilon/></bgf:expression><bgf:expression><epsilon/></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacei.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><epsilon/></bgf:expression><bgf:expression><value>int</value></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacen.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><epsilon/></bgf:expression><bgf:expression><nonterminal>x</nonterminal></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/caceo.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><epsilon/></bgf:expression><bgf:expression><empty/></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/caces.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><epsilon/></bgf:expression><bgf:expression><value>string</value></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacet.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><epsilon/></bgf:expression><bgf:expression><terminal>x</terminal></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacia.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><value>int</value></bgf:expression><bgf:expression><any/></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacie.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><value>int</value></bgf:expression><bgf:expression><epsilon/></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacii.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><value>int</value></bgf:expression><bgf:expression><value>int</value></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacin.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><value>int</value></bgf:expression><bgf:expression><nonterminal>x</nonterminal></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacio.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><value>int</value></bgf:expression><bgf:expression><empty/></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacis.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><value>int</value></bgf:expression><bgf:expression><value>string</value></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacit.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><value>int</value></bgf:expression><bgf:expression><terminal>x</terminal></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacna.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><nonterminal>x</nonterminal></bgf:expression><bgf:expression><any/></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacne.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><nonterminal>x</nonterminal></bgf:expression><bgf:expression><epsilon/></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacni.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><nonterminal>x</nonterminal></bgf:expression><bgf:expression><value>int</value></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacnn.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><nonterminal>x</nonterminal></bgf:expression><bgf:expression><nonterminal>x</nonterminal></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacno.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><nonterminal>x</nonterminal></bgf:expression><bgf:expression><empty/></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacns.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><nonterminal>x</nonterminal></bgf:expression><bgf:expression><value>string</value></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
1 change: 1 addition & 0 deletions topics/storage/bgf/tests/cacnt.bgf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0"?><bgf:grammar xmlns:bgf="http://planet-sl.org/bgf"><bgf:production><label>foo</label><nonterminal>bar</nonterminal><bgf:expression><choice><bgf:expression><any/></bgf:expression><bgf:expression><choice><bgf:expression><nonterminal>x</nonterminal></bgf:expression><bgf:expression><terminal>x</terminal></bgf:expression></choice></bgf:expression></choice></bgf:expression></bgf:production></bgf:grammar>
Loading

0 comments on commit d9ceeac

Please sign in to comment.