source: trunk/experimental/bnfyaml/parseyamlbnf.py @ 82

Revision 82, 374 bytes checked in by tim, 9 years ago (diff)

added bnfyaml in experimental

Line 
1"""Re-written version of simpleexample for 2.0"""
2from simpleparse.common import numbers, strings, comments
3from simpleparse.parser import Parser
4import pprint
5
6declaration = open('yamltest.bnf','r').read()
7testData = open('datatest.yaml','r').read()
8parser = Parser( declaration, "c_printable" )
9if __name__ =="__main__":
10        pprint.pprint( parser.parse( testData))
Note: See TracBrowser for help on using the repository browser.