Procházet zdrojové kódy

Small fix

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.5.3
Erez Shinan před 6 roky
rodič
revize
b36b8165c7
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      lark/parser_frontends.py

+ 1
- 1
lark/parser_frontends.py Zobrazit soubor

@@ -127,7 +127,7 @@ class XEarley:
raise ValueError("Bad regexp in token %s: %s" % (t.name, regexp))
else:
if width == 0:
raise ValueError("Dynamic Earley doesn't allow zero-width regexps")
raise ValueError("Dynamic Earley doesn't allow zero-width regexps", t)

self.regexps[t.name] = re.compile(regexp)



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