语法分析:语法分析解析器 源码

上传:spiritual44108 浏览: 24 推荐: 0 文件:ZIP 大小:191.06KB 上传时间:2021-02-22 05:58:18 版权申诉
语法分析 语法分析(lexer之后的编译器步骤)。 安装 npm i @jlguenego/syntax-analysis 用法 您应该使用Typescript以便以更简单的方式检查语法。 const t = defineTerminalAlphabet ( [ '+' , 'int' ] as const ) ; const nt = defineNonTerminalAlphabet ( [ 'S' , 'E' , 'F' ] as const ) ; type TA = typeof t ; type NTA = typeof nt ; const spec : CFGSpec < T
上传资源
用户评论