Skip to content

Commit

Permalink
Add strict to LALR_Parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Jul 20, 2023
1 parent fffa767 commit e69548a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 Expand Up @@ -1067,4 +1067,4 @@ plugins = {
'LexerThread': LexerThread,
'LALR_Parser': LALR_Parser,
'_Parser': _Parser, # XXX Ugly
}
}

0 comments on commit e69548a

Please sign in to comment.