grncdr / js-shell-parse

parse bash, with javascript (UNMAINTAINED)
MIT License
90 stars 13 forks source link

way to parse back the AST into code? #17

Closed gabrielcsapo closed 7 years ago

gabrielcsapo commented 7 years ago

Acornjs (https://github.com/ternjs/acorn#main-parser has the ability to parse and generate given an AST.

Would it be possible given a shell ast to parse it back to the original output? or even better, add the original string to the output object?

gabrielcsapo commented 7 years ago

@grncdr thoughts?