Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache option does not work with Reconstructor #1472

Open
weaversam8 opened this issue Sep 23, 2024 · 0 comments
Open

cache option does not work with Reconstructor #1472

weaversam8 opened this issue Sep 23, 2024 · 0 comments

Comments

@weaversam8
Copy link
Contributor

Describe the bug

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

  1. Open a parser with Lark.open(...) while setting the cache argument to a file path.
  2. Try to initialize a Reconstructor(...) with that parser.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant