We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90bec74 commit 6aebc05Copy full SHA for 6aebc05
src/bison/__init__.py
@@ -54,7 +54,7 @@ class BisonParser(object):
54
# override these if you need to
55
56
# Command and options for running yacc/bison, except for filename arg
57
- bisonCmd = ['bison', '-d', '-v', '-t']
+ bisonCmd = ['bison', '-d']
58
59
bisonFile = 'tmp.y'
60
bisonCFile = 'tmp.tab.c'
@@ -159,6 +159,12 @@ def __init__(self, **kw):
159
self.defaultNodeClass = nodeClass
160
161
self.verbose = kw.get('verbose', 0)
162
+ if self.verbose:
163
+ self.bisonCmd.append('--verbose')
164
+
165
+ self.debug = kw.get('debug', 0)
166
+ if self.debug:
167
+ self.bisonCmd.append('--debug')
168
169
if 'keepfiles' in kw:
170
self.keepfiles = kw['keepfiles']
0 commit comments