-
Hello, I want to use chevrotain to extend the ts syntax, but I can't find the chevrotain ts syntax file, I only see the js syntax file. Has anyone ever implemented the ts syntax file? |
Beta Was this translation helpful? Give feedback.
Answered by
bd82
Sep 26, 2024
Replies: 1 comment
-
Hello @alamhubb TypeScript is a superset of JavaScript (ECMAScript).
In other words, Chevrotain may not be the right too for the job of extending TypeScript grammar. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
alamhubb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @alamhubb
TypeScript is a superset of JavaScript (ECMAScript).
And JavaScript is not a language which is simple to lex/parse with separate lexing and parsing steps.
In other words, Chevrotain may not be the right too for the job of extending TypeScript grammar.