do not use yacc.yacc() outputdir option as this causes tables to always be regenerated
This commit is contained in:
1 parent
68f6b3fc08
commit
6ac296e1d4
3 files changed
+2
-2
No files matched your search
@@ -1 +1,2 @@
|
|||||||
parser.out
|
parser.out
|
||||||
|
parsetab.py
|
||||||
@@ -1 +0,0 @@
|
|||||||
parsetab.py
|
|
||||||
+1
-1
@@ -9,7 +9,7 @@ class Parser(object):
|
|||||||
self.input = input
|
self.input = input
|
||||||
self.lexer = Lexer()
|
self.lexer = Lexer()
|
||||||
self.tokens = self.lexer.tokens
|
self.tokens = self.lexer.tokens
|
||||||
self.parser = yacc.yacc(module = self, outputdir = 'parser')
|
self.parser = yacc.yacc(module = self)
|
||||||
self.saw_error = False
|
self.saw_error = False
|
||||||
|
|
||||||
def p_unit(self, p):
|
def p_unit(self, p):
|
||||||
|
|||||||
Reference in new issue
Block a user