mirror of https://github.com/lark-parser/lark.git
Little stuff
This commit is contained in:
parent
24f86569da
commit
2dbf5d7b26
|
@ -88,7 +88,7 @@ class Lexer(object):
|
||||||
try:
|
try:
|
||||||
re.compile(t.pattern.to_regexp())
|
re.compile(t.pattern.to_regexp())
|
||||||
except:
|
except:
|
||||||
raise LexError("Cannot compile token: %s: %s" % (t.name, t.pattern))
|
raise LexError("Cannot compile token %s: %s" % (t.name, t.pattern))
|
||||||
|
|
||||||
width = sre_parse.parse(t.pattern.to_regexp()).getwidth()
|
width = sre_parse.parse(t.pattern.to_regexp()).getwidth()
|
||||||
if width[0] == 0:
|
if width[0] == 0:
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -6,7 +6,7 @@ __version__ ,= re.findall('__version__ = "(.*)"', open('lark/__init__.py').read(
|
||||||
setup(
|
setup(
|
||||||
name = "lark-parser",
|
name = "lark-parser",
|
||||||
version = __version__,
|
version = __version__,
|
||||||
packages = ['lark', 'lark.parsers', 'lark.tools'],
|
packages = ['lark', 'lark.parsers', 'lark.tools', 'lark.grammars'],
|
||||||
|
|
||||||
requires = [],
|
requires = [],
|
||||||
install_requires = [],
|
install_requires = [],
|
||||||
|
|
Loading…
Reference in New Issue