diff --git a/lark_cython/lark_cython.pyx b/lark_cython/lark_cython.pyx index 6b977b6..1173cae 100644 --- a/lark_cython/lark_cython.pyx +++ b/lark_cython/lark_cython.pyx @@ -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 diff --git a/pyproject.toml b/pyproject.toml index c8ba815..288d265 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/setup.py b/setup.py index 93f8f5e..612eb64 100644 --- a/setup.py +++ b/setup.py @@ -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",