diff options
author | David Beazley <dave@dabeaz.com> | 2015-04-17 12:43:32 -0500 |
---|---|---|
committer | David Beazley <dave@dabeaz.com> | 2015-04-17 12:43:32 -0500 |
commit | ac3a67463bc377803cb31d3f5d3bafd67f32733e (patch) | |
tree | 4503a3dade4fc7d4858a0c24c6a228350d7e8cab | |
parent | 9fe7cb005c916aaedffce63b900455cdc1680c4d (diff) | |
download | ply-ac3a67463bc377803cb31d3f5d3bafd67f32733e.tar.gz |
Fixed Issue #44. call_errorfunc() should return the result of errorfunc()
-rw-r--r-- | CHANGES | 3 | ||||
-rw-r--r-- | ply/yacc.py | 1 |
2 files changed, 4 insertions, 0 deletions
@@ -1,6 +1,9 @@ Version 3.5 --------------------- 04/16/15: beazley + Fixed Issue #44 call_errorfunc() should return the result of errorfunc() + +04/16/15: beazley Support for versions of Python <2.7 is officially dropped. PLY may work, but the unit tests requires Python 2.7 or newer. diff --git a/ply/yacc.py b/ply/yacc.py index 51f3174..b51fe6e 100644 --- a/ply/yacc.py +++ b/ply/yacc.py @@ -201,6 +201,7 @@ def call_errorfunc(errorfunc,token,parser): _restart = parser.restart r = errorfunc(token) del _errok, _token, _restart + return r #----------------------------------------------------------------------------- # === LR Parsing Engine === |