Procházet zdrojové kódy

Fix for tree_matcher

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.11.0
MegaIng1 před 4 roky
rodič
revize
9370fb5aa5
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. +2
    -1
      lark/tree_matcher.py

+ 2
- 1
lark/tree_matcher.py Zobrazit soubor

@@ -81,7 +81,8 @@ class TreeMatcher:
def __init__(self, parser):
# XXX TODO calling compile twice returns different results!
assert parser.options.maybe_placeholders == False
self.tokens, rules, _extra = parser.grammar.compile(parser.options.start)
# XXX TODO: we just ignore the potential existence of a postlexer
self.tokens, rules, _extra = parser.grammar.compile(parser.options.start, set())

self.rules_for_root = defaultdict(list)



Načítá se…
Zrušit
Uložit