-
Notifications
You must be signed in to change notification settings - Fork 30
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
Dynamic loading of grammars #716
Conversation
This is interesting. Any chance this might be provisionally usable at the moment? |
It works on Linux right now (including NixOS), but I've only really tested the happy paths. So be careful! |
3f55258
to
c131ff5
Compare
Passing! Hooray! : ) Nice work. |
32d8d72
to
b806a53
Compare
6885233
to
8d9ea3f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 🎉
I don't claim to be an expert on this, so it might be worth getting a second opinion, but I could follow it well enough. Either way, perhaps adding some comments into the language building code would make it more maintainable.
This resolves lint error on #[wasm_bindgen]
487b142
to
925533f
Compare
Dynamic loading
Issue: #4
Description
The goal of this PR is to remove our dependencies on the tree-sitter grammar crates, and fetch and compile the grammars as necessary. Ideally, Topiary should not know about any language at all, and fetch all information from the configuration file.
Checklist
Checklist before merging: