summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Beazley <dave@dabeaz.com>2015-04-16 11:38:53 -0500
committerDavid Beazley <dave@dabeaz.com>2015-04-16 11:38:53 -0500
commit9ed4ad861097901cef05b78a74802128a10e437a (patch)
tree5fdf6d87a7c4e28fbf106208c64c0058b8424358
parentc423682c8a45a631035a2a8e46c976768a0cecb0 (diff)
downloadply-9ed4ad861097901cef05b78a74802128a10e437a.tar.gz
Fixed yacc start keyword and parsetab caching #52
-rw-r--r--ply/yacc.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ply/yacc.py b/ply/yacc.py
index 49d83d7..51f3174 100644
--- a/ply/yacc.py
+++ b/ply/yacc.py
@@ -3109,6 +3109,10 @@ def yacc(method='LALR', debug=yaccdebug, module=None, tabmodule=tab_module, star
else:
pdict = get_caller_module_dict(2)
+ # Set start symbol if it's specified directly using an argument
+ if start is not None:
+ pdict['start'] = start
+
# Collect parser information from the dictionary
pinfo = ParserReflect(pdict,log=errorlog)
pinfo.get_all()