bash parser:将bash解析为AST 源码

上传:qqdigestion62278 浏览: 28 推荐: 0 文件:ZIP 大小:106.28KB 上传时间:2021-02-09 08:41:16 版权申诉
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 : [
上传资源
用户评论