mirror of
https://github.com/davidhalter/parso.git
synced 2026-03-05 06:34:31 +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.convert_leaf = convert_leaf
|
||||||
|
|
||||||
self.stack = Stack([StackNode(grammar._nonterminal_to_dfas[start_nonterminal][0])])
|
self.stack = Stack([StackNode(grammar._nonterminal_to_dfas[start_nonterminal][0])])
|
||||||
self.rootnode = None
|
|
||||||
self.error_recovery = error_recovery
|
self.error_recovery = error_recovery
|
||||||
|
|
||||||
def parse(self, tokens):
|
def parse(self, tokens):
|
||||||
|
|||||||
Reference in New Issue
Block a user