Skip to content

Commit

Permalink
Merge pull request #25 from lark-parser/issue23
Browse files Browse the repository at this point in the history
Attempt to fix issue caused by lark 1.1.6 introduction of strict mode
  • Loading branch information
erezsh authored Jul 21, 2023
2 parents fffa767 + 9bcf0ac commit ed16e86
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lark_cython/lark_cython.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,8 @@ cdef class _Parser:


class LALR_Parser(Serialize):
def __init__(self, parser_conf, debug=False):
analysis = LALR_Analyzer(parser_conf, debug=debug)
def __init__(self, parser_conf, debug=False, strict=False):
analysis = LALR_Analyzer(parser_conf, debug=debug, strict=strict)
analysis.compute_lalr()
callbacks = parser_conf.callbacks

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools", "wheel", "Cython>=0.29.1"]
requires = ["setuptools", "wheel", "Cython>=0.29.1,<0.29.35"]
build-backend = "setuptools.build_meta"


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def parse_description():

ext_modules = cythonize('lark_cython/*.pyx'), # accepts a glob pattern
requires = ['Cython'],
install_requires = ['lark>=1.1.4', 'cython>=0.29.0', 'Cython>=0.29.0'],
install_requires = ['lark>=1.1.7', 'cython>=0.29.1,<0.29.35', 'Cython>=0.29.1,<0.29.35'],
setup_requires=['Cython'],

author = "Erez Shinan",
Expand Down

0 comments on commit ed16e86

Please sign in to comment.