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

后端 未结 4 1691
说谎
说谎 2020-12-29 09:23

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 analy

4条回答
  •  Happy的楠姐
    2020-12-29 10:15

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

提交回复
热议问题