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
Official Tree-sitter Grammar for Cython #3662
Comments
I wouldn't mind, if someone implements it. |
@scoder I am willing to implement it once Cython's grammar is fully formally documented. I am really interested in improving editor support for Cython (e.g. in Atom). |
Never mind, I will try my best to implement Cython's Tree-sitter grammar right now, though as a fork of (rather than a dependent of) Python's Tree-sitter grammar, since I am not sure about how to programmatically append rules to existing Tree-sitter grammars. It will be difficult though due to the absence of an accurate description of Cython's grammar other than the parser code. |
Hi, came across this thread while searching for cython support in treesitter. As I understand, the separate grammar file is needed. What's the status on this, is it planned to be made? |
Proposal
Cython should have an official Tree-sitter grammar separate from the main repo, with Cython-only syntax rules programmatically appended to Python's Tree-sitter grammar (and thus having Python's Tree-sitter grammar as a dependency). Note that I don't think Cython's compiler should use Tree-sitter for parsing.
Pros
Cons
The text was updated successfully, but these errors were encountered: