Explorar el Código

Small fix

tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.5.3
Erez Shinan hace 6 años
padre
commit
b36b8165c7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      lark/parser_frontends.py

+ 1
- 1
lark/parser_frontends.py Ver fichero

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



Cargando…
Cancelar
Guardar