Explorar o código

Implemented hook_handler caller.

Sander Mathijs van Veen %!s(int64=14) %!d(string=hai) anos
pai
achega
e1dc885322
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/pyrex/bison_.pyx

+ 3 - 0
src/pyrex/bison_.pyx

@@ -114,6 +114,9 @@ cdef public object py_callback(object parser, char *target, int option, \
 
     #signal.alarm(0)
 
+    if hasattr(parser, 'hook_handler'):
+        res = parser.hook_handler(target, option, names, values, res)
+
     return res
 
 # callback routine for reading input