diff options
author | David Beazley <dave@dabeaz.com> | 2016-08-30 16:12:45 -0500 |
---|---|---|
committer | David Beazley <dave@dabeaz.com> | 2016-08-30 16:12:45 -0500 |
commit | 11913b112e4a63317d82fa8d3c1a3e87a22c83c8 (patch) | |
tree | 03b4b163cc79f29e15757f6d560e897a2071ae1c /CHANGES | |
parent | 5ca447eb64e2717dda18a302ae52500484b6176f (diff) | |
download | ply-11913b112e4a63317d82fa8d3c1a3e87a22c83c8.tar.gz |
Published parser state on parser objects
Diffstat (limited to 'CHANGES')
-rw-r--r-- | CHANGES | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1,5 +1,17 @@ Version 3.9 --------------------- +08/30/16: beazley + Exposed the parser state number as the parser.state attribute + in productions and error functions. For example: + + def p_somerule(p): + ''' + rule : A B C + ''' + print('State:', p.parser.state) + + May address issue #65 (publish current state in error callback). + 08/30/16: beazley Fixed Issue #88. Python3 compatibility with ply/cpp. |