Remove tokens initialization parameter from the parser api.
This commit is contained in:
1 parent
42e8861798
commit
689af9fc4e
2 files changed
+2
-4
No files matched your search
@@ -41,7 +41,7 @@ class Parser(BaseParser):
|
||||
|
||||
def __init__(self, grammar, source, start_symbol='file_input',
|
||||
tokens=None, start_parsing=True):
|
||||
super(Parser, self).__init__(grammar, tokens, start_symbol)
|
||||
super(Parser, self).__init__(grammar, start_symbol)
|
||||
# Todo Remove start_parsing (with False)
|
||||
|
||||
self.source = source
|
||||
@@ -170,7 +170,6 @@ class ParserWithRecovery(Parser):
|
||||
# else:
|
||||
super(ParserWithRecovery, self).__init__(
|
||||
grammar, source,
|
||||
tokens=tokens,
|
||||
start_parsing=start_parsing
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user