|
|
@@ -144,6 +144,13 @@ class Parser(BisonParser):
|
|
|
|
|
|
data = data_after
|
|
|
|
|
|
+ if self.interactive:
|
|
|
+ if not self.possibilities:
|
|
|
+ print 'possibilities: None'
|
|
|
+ else:
|
|
|
+ print 'possibilities:'
|
|
|
+ print self.possibilities
|
|
|
+
|
|
|
return data
|
|
|
|
|
|
def hook_handler(self, target, option, names, values, retval):
|
|
|
@@ -155,6 +162,9 @@ class Parser(BisonParser):
|
|
|
|
|
|
return retval
|
|
|
|
|
|
+ def hook_run(self, filename, retval):
|
|
|
+ return retval
|
|
|
+
|
|
|
# ---------------------------------------------------------------
|
|
|
# These methods are the python handlers for the bison targets.
|
|
|
# (which get called by the bison code each time the corresponding
|
|
|
@@ -390,8 +400,5 @@ def main():
|
|
|
if interactive:
|
|
|
print
|
|
|
|
|
|
- return node
|
|
|
-
|
|
|
|
|
|
-if __name__ == '__main__':
|
|
|
- main()
|
|
|
+ return node
|