Replies: 1 comment 7 replies
-
We've build some TypeScript like languages in the past (closed-source) with Langium. While some language/parser features are not completely trivial to implement (such as template strings), Langium should be capable of dealing with that fairly well. There will be a lot of work on the scoping/type system level you'll need to do, but I imagine that Langium will serve fairly well for this task. Someone created an EBNF grammar of TypeScript a while back. It's not up to spec (since it's from 2014) but it should well as a starting point. I would also recommend to take a look at the langium-lox repo, which shows how to implement scoping and type system support for a Langium based language. |
Beta Was this translation helpful? Give feedback.
-
Looking to make a language that is a superset/subset of TypeScript syntax, but with a different type checking implementation, and not JS output. Would
langium
be suitable for making a TS parser?Beta Was this translation helpful? Give feedback.
All reactions