Trigger hook "hook_run" after run().

parent e1dc8853
...@@ -251,6 +251,9 @@ class BisonParser(object): ...@@ -251,6 +251,9 @@ class BisonParser(object):
if self.verbose: if self.verbose:
print 'Parser.run: back from engine' print 'Parser.run: back from engine'
if hasattr(self, 'hook_run'):
self.last = self.hook_run(filename, self.last)
if self.verbose and not self.file.closed: if self.verbose and not self.file.closed:
print 'last:', self.last print 'last:', self.last
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment