mirror of
https://github.com/davidhalter/parso.git
synced 2026-01-19 17:43:07 +08:00
Don't set the root node before it's not actually defined
This commit is contained in:
@@ -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