Project: bashlex

Python parser for bash

Project Details

Latest version
0.18
Home Page
https://github.com/idank/bashlex.git
PyPI Page
https://pypi.org/project/bashlex/

Project Popularity

PageRank
0.002393560354892739
Number of downloads
446854

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:

  1. it does not execute anything
  2. it is reentrant
  3. it generates a complete AST

See https://github.com/idank/bashlex/blob/master/README.md for more info.