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: add menhir grammar to this repo #93

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tjdevries
Copy link

I was wondering if you would be interested in having more of the OCaml and OCaml-related grammars all live in the same repo, so that they can share the implementation of OCaml highlighting.

This removed some of the more complicated parts of the grammar found here: https://github.com/Kerl13/tree-sitter-menhir/ because it can share the definitions for OCaml itself.

I'm happy to explain more about what I was thinking here, but I would also be interested in adding ocamllex, and cram based grammars here if that would be helpful.

Thanks!

@314eter
Copy link
Collaborator

314eter commented Jun 15, 2024

The main change seems to be that you're including the full ocaml grammar, but language injections seem to be a better solution for that. That's what tree-sitter-ocamllex and many other tree-sitter grammars are doing.

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.

2 participants