Skip to content

Releases: ldayton/Parable

v0.1.0

25 Mar 11:45
9968884

Choose a tag to compare

Parse bash exactly as bash does. One file, zero dependencies, in your language.

Parable is a recursive descent parser for the full bash grammar β€” heredocs, parameter expansion, process substitution, arithmetic, arrays, conditionals, coprocesses, extglob, all of it. Validated against a patched GNU Bash 5.3 that reveals its internal parse tree. No spec interpretation, no "close enough."

Downloads

Language File Min Version
JavaScript parable.js Node.js 21
Python parable.py CPython/PyPy 3.12

Highlights

  • 4,574 tests passing across both languages
  • Oracle-tested against bash's own AST β€” not spec-interpreted
  • Zero dependencies β€” single file, drop into any project
  • Differential fuzzer for discovering edge cases against bash itself
  • Transpiled via Tongues