bash parser:将bash解析为AST 源码
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 : [
下载地址
用户评论