Little stuff

This commit is contained in:
Erez Shinan 2017-03-09 17:50:33 +02:00
parent 24f86569da
commit 2dbf5d7b26
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ class Lexer(object):
try:
re.compile(t.pattern.to_regexp())
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()
if width[0] == 0:

View File

@ -6,7 +6,7 @@ __version__ ,= re.findall('__version__ = "(.*)"', open('lark/__init__.py').read(
setup(
name = "lark-parser",
version = __version__,
packages = ['lark', 'lark.parsers', 'lark.tools'],
packages = ['lark', 'lark.parsers', 'lark.tools', 'lark.grammars'],
requires = [],
install_requires = [],