You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cache option does not work with Reconstructor #1472
If an lalr grammar is loaded from a cached file, and then the parser is passed to initialize a Reconstructor(...) class, initialization fails with the following error:
AttributeError: 'Lark' object has no attribute 'grammar'
To Reproduce
Open a parser with Lark.open(...) while setting the cache argument to a file path.
Try to initialize a Reconstructor(...) with that parser.
Activity
Serialize Lark.grammar (fixes issue #1472) (#1506)
erezsh commentedon Aug 3, 2025
I think this can now be closed as fixed. Feel free to reopen if you think it's still an issue.