mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-25 05:57:21 +08:00
Don't set the root node before it's not actually defined
This commit is contained in:
1 parent
a890ddd6cc
commit
33e321a539
1 file changed
-1
@@ -146,7 +146,6 @@ class PgenParser(object):
|
||||
self.convert_leaf = convert_leaf
|
||||
|
||||
self.stack = Stack([StackNode(grammar._nonterminal_to_dfas[start_nonterminal][0])])
|
||||
self.rootnode = None
|
||||
self.error_recovery = error_recovery
|
||||
|
||||
def parse(self, tokens):
|
||||
|
||||
Reference in new issue
Block a user