summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Beazley <dave@dabeaz.com>2015-04-17 12:43:32 -0500
committerDavid Beazley <dave@dabeaz.com>2015-04-17 12:43:32 -0500
commitac3a67463bc377803cb31d3f5d3bafd67f32733e (patch)
tree4503a3dade4fc7d4858a0c24c6a228350d7e8cab
parent9fe7cb005c916aaedffce63b900455cdc1680c4d (diff)
downloadply-ac3a67463bc377803cb31d3f5d3bafd67f32733e.tar.gz
Fixed Issue #44. call_errorfunc() should return the result of errorfunc()
-rw-r--r--CHANGES3
-rw-r--r--ply/yacc.py1
2 files changed, 4 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 7514a95..53651fa 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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 ===