do not use yacc.yacc() outputdir option as this causes tables to always be regenerated

This commit is contained in:
Josh Holtrop 2011-08-31 10:26:31 -04:00
parent 68f6b3fc08
commit 6ac296e1d4
3 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
parser.out
parsetab.py

1
parser/.gitignore vendored
View File

@ -1 +0,0 @@
parsetab.py

View File

@ -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):