bash-parser:将bash解析为AST

时间:2021-02-05 02:20:58
【文件属性】:
文件名称:bash-parser:将bash解析为AST
文件大小:106KB
文件格式:ZIP
更新时间:2021-02-05 02:20:58
bash parse ast BashJavaScript bash解析器 解析bash源代码以生成AST 安装 npm install --save bash-parser 用法 const parse = require ( 'bash-parser' ) ; const ast = parse ( 'echo ciao' ) ; ast结果是: { type : "Script" , commands : [ { type : "SimpleCommand" , name : { text : "echo" , type : "Word" } , suffix : [

网友评论