bnftypescript

Is there a formal (ideally BNF) typescript js language grammar (or only typescript subset)?


I'm looking for the Typescript grammar. Not the parser-lexer, but only the formal grammar description. I want to implement ts it's code folding and basic static code analyzing as plugin to one simple linux IDE for GNOME.


Solution

  • The formal grammar is in Appendix A of the TypeScript Language Reference, version 1.8 if which is found here (for current version)