simpleparse.examples.simpleexample2_2
index
/home/mcfletch/pylive/simpleparse/examples/simpleexample2_2.py

Re-written version of simpleexample for 2.0
 
Shows use of Parser to check syntax of declaration and
test that a particular production is matching what we
expect it to match...

 
Modules
       
simpleparse.common.comments
simpleparse.common.numbers
simpleparse.common.strings

 
Data
        declaration = '# note use of raw string when embedding in pytho...ring/number/identifier\nts := [ \\t]*\n'
parser = <simpleparse.parser.Parser instance>
production = 'equality'
testEquality = ['s=3\n', 's = 3\n', ' s="three\\nthere"\n', ' s=three\n']