diff options
author | David Beazley <dave@dabeaz.com> | 2009-01-13 13:23:40 +0000 |
---|---|---|
committer | David Beazley <dave@dabeaz.com> | 2009-01-13 13:23:40 +0000 |
commit | bc4321d25db0b37f5e6264c58827d69264aa0260 (patch) | |
tree | 69c2c7c7b654c71d7824829cc0cd3f115b9c70a3 /example/BASIC/basparse.py | |
parent | e65cd063f1c8881c9589a9726e0cde76533b55c0 (diff) | |
download | ply-bc4321d25db0b37f5e6264c58827d69264aa0260.tar.gz |
Significant cleanup. Refactoring of yacc internals
Diffstat (limited to 'example/BASIC/basparse.py')
-rw-r--r-- | example/BASIC/basparse.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/BASIC/basparse.py b/example/BASIC/basparse.py index d773715..ccdeb16 100644 --- a/example/BASIC/basparse.py +++ b/example/BASIC/basparse.py @@ -403,9 +403,9 @@ def p_error(p): bparser = yacc.yacc() -def parse(data): +def parse(data,debug=0): bparser.error = 0 - p = bparser.parse(data) + p = bparser.parse(data,debug=debug) if bparser.error: return None return p |