Skip to content

Commit

Permalink
fix: examples/readme: update to the new interface
Browse files Browse the repository at this point in the history
  • Loading branch information
deztructor committed Jun 21, 2012
1 parent 073ddf7 commit f4c89de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@

#using to test and see how parser works
def test_parser(generator, src_str):
parser = generator()
generator.parser_cache_reset()
parser = generator(mk_options(is_trace = True))
print "Using", parser.__name__
print "Parsing:", repr(src_str)
src = source(src_str)
print "GOT:", parser.parse(src)
print "GOT:", parser.match(src)
print

#basic parser generator function, on parsing tracking will be reported
Expand Down

0 comments on commit f4c89de

Please sign in to comment.