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

Kotlin/JS DSL for grammars #6

Open
ObserverOfTime opened this issue Jun 9, 2024 · 1 comment
Open

Kotlin/JS DSL for grammars #6

ObserverOfTime opened this issue Jun 9, 2024 · 1 comment

Comments

@ObserverOfTime
Copy link
Member

It should be possible to rewrite the grammar DSL in Kotlin/JS.
Grammar authors can then write the grammar in grammar.kts and the DSL package will transpile it to JSON.
Think Rust Sitter but in a better language. ;)

@l-xiaoshen
Copy link

I'm also making a kotlin DSL for tree sitter grammar rn, with ide support. However it targets JVM.

An equivalent tree-sitter-json grammar in DSL

https://gist.github.com/l-xiaoshen/c56c0d87730897a0d439396265617da4

image image image

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

2 participants