From 11913b112e4a63317d82fa8d3c1a3e87a22c83c8 Mon Sep 17 00:00:00 2001 From: David Beazley Date: Tue, 30 Aug 2016 16:12:45 -0500 Subject: Published parser state on parser objects --- CHANGES | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'CHANGES') diff --git a/CHANGES b/CHANGES index b309290..75cba86 100644 --- a/CHANGES +++ b/CHANGES @@ -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. -- cgit v1.2.1