bashlex
Python parser for bash
Rank: #1306Downloads: 8,350,059 (30 days)Stars: 628Forks: 104
Description
bashlex is a Python port of the parser used internally by GNU bash.
For the most part it's transliterated from C, the major differences are:
- it does not execute anything
- it is reentrant
- it generates a complete AST
See https://github.com/idank/bashlex/blob/master/README.md for more info.