diff options
author | David Beazley <dave@dabeaz.com> | 2015-04-16 11:38:53 -0500 |
---|---|---|
committer | David Beazley <dave@dabeaz.com> | 2015-04-16 11:38:53 -0500 |
commit | 9ed4ad861097901cef05b78a74802128a10e437a (patch) | |
tree | 5fdf6d87a7c4e28fbf106208c64c0058b8424358 /ply | |
parent | c423682c8a45a631035a2a8e46c976768a0cecb0 (diff) | |
download | ply-9ed4ad861097901cef05b78a74802128a10e437a.tar.gz |
Fixed yacc start keyword and parsetab caching #52
Diffstat (limited to 'ply')
-rw-r--r-- | ply/yacc.py | 4 |
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() |