Sfoglia il codice sorgente

Small fix

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.5.3
Erez Shinan 6 anni fa
parent
commit
b36b8165c7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      lark/parser_frontends.py

+ 1
- 1
lark/parser_frontends.py Vedi File

@@ -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)



Caricamento…
Annulla
Salva