Parcourir la source

Implemented hook_handler caller.

Sander Mathijs van Veen il y a 14 ans
Parent
commit
e1dc885322
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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