是否有正式的(最好是 BNF)打字稿 js 语言语法(或只有打字稿子集)? [英] Is there a formal (ideally BNF) typescript js language grammar (or only typescript subset)?

查看:21
本文介绍了是否有正式的(最好是 BNF)打字稿 js 语言语法(或只有打字稿子集)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找 Typescript 语法.不是解析器-词法分析器,而是正式的语法描述.我想将 ts 它的代码折叠和基本静态代码分析作为插件实现到一个用于 GNOME 的简单 linux IDE.

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.

推荐答案

正式语法在 TypeScript 语言参考 1.8 版的附录 A 中(如果找到)此处这里(当前版本)

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)

这篇关于是否有正式的(最好是 BNF)打字稿 js 语言语法(或只有打字稿子集)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆