Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants