Give AlbumentationsX a star on GitHub — it powers this leaderboard

Star on GitHub

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:

  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.