Share your code.
Parses bash source code to produce an AST
npm install --save bash-parser
const parse = ;const ast = ;
ast result is:
type: "Script"commands:type: "SimpleCommand"name:text: "echo"type: "Word"suffix:text: "ciao"type: "Word"
- cash - This parser should become the parser used by
cash(and also vorpal)
- nsh - This parser should become the parser used by
- js-shell-parse - bash-parser was born as a fork of
js-shell-parse, but was rewritten to use a
Look in documents folder
The MIT License (MIT)
Copyright (c) 2016 vorpaljs