A DSL for generating the parser and CST typing #1597
diff3usion
started this conversation in
Show and tell
Replies: 1 comment
-
Hello @diff3usion and thanks for sharing 👍 Chevrotain used to include some APIs to assist in the creation of such DSLs However, these APIs have been deprecated to reduce the maintenance overhead of the library. Another previous community effort in this area can be found here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I was working on the semantic analysis of CST with Typescript, I was bothered by the lack of typing hints, which inspires me to make a DSL for generating the typing and the parser codes at the same time. The syntax looks like this:
More info can be found in the repo meta-chevrotain
I also noticed that there had already been some work on generating the types, but this project can still be a interesting alternative approach.
One possible future use case can be some highly interactive playground where such reduced syntax can be make user-friendly for people who would like to define their own DSL without much knowledge of javascript.
Beta Was this translation helpful? Give feedback.
All reactions