escalier-lang / escalier

A compile-to-JavaScript language with tight TypeScript integration.
https://escalier-lang.github.io/escalier/
MIT License
21 stars 1 forks source link

Use a CST so that we can provide syntax highlight without having to do semantic analysis #709

Open kevinbarabash opened 11 months ago

kevinbarabash commented 11 months ago

This would allow us to "parse" flow control statements at the top-level in modules (where they aren't allowed) and provide syntax highlight for the whole file while returning multiple semantic errors when converting the CST to an AST.