summaryrefslogtreecommitdiff
path: root/example/BASIC/basparse.py
diff options
context:
space:
mode:
authorDavid Beazley <dave@dabeaz.com>2009-01-13 13:23:40 +0000
committerDavid Beazley <dave@dabeaz.com>2009-01-13 13:23:40 +0000
commitbc4321d25db0b37f5e6264c58827d69264aa0260 (patch)
tree69c2c7c7b654c71d7824829cc0cd3f115b9c70a3 /example/BASIC/basparse.py
parente65cd063f1c8881c9589a9726e0cde76533b55c0 (diff)
downloadply-bc4321d25db0b37f5e6264c58827d69264aa0260.tar.gz
Significant cleanup. Refactoring of yacc internals
Diffstat (limited to 'example/BASIC/basparse.py')
-rw-r--r--example/BASIC/basparse.py4
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