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

feat: cached parsing #169

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

feat: cached parsing #169

wants to merge 1 commit into from

Conversation

rubydusa
Copy link
Contributor

@rubydusa rubydusa commented Apr 4, 2023

Renamed run_parser to run_parser_cached, and the parser now accepts a cache of files that it will use when possible

My reason for this PR is that currently the parsing functionality of circom is coupled with io stuff, and this PR aims to make it possible to parse circom programs without reading from the file system.

E.g. for a use case: I'm developing an LSP server for circom, and it would be helpful to parse the contents of the current buffer in an editor without saving it to a file first. This is currently not possible

Here is an example repo that demonstrates the use of the cached 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

Successfully merging this pull request may close these issues.

1 participant