do not use yacc.yacc() outputdir option as this causes tables to always be regenerated
This commit is contained in:
parent
68f6b3fc08
commit
6ac296e1d4
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
parser.out
|
||||
parsetab.py
|
||||
|
1
parser/.gitignore
vendored
1
parser/.gitignore
vendored
@ -1 +0,0 @@
|
||||
parsetab.py
|
@ -9,7 +9,7 @@ class Parser(object):
|
||||
self.input = input
|
||||
self.lexer = Lexer()
|
||||
self.tokens = self.lexer.tokens
|
||||
self.parser = yacc.yacc(module = self, outputdir = 'parser')
|
||||
self.parser = yacc.yacc(module = self)
|
||||
self.saw_error = False
|
||||
|
||||
def p_unit(self, p):
|
||||
|
Loading…
x
Reference in New Issue
Block a user