Rare find

Pegen. A tool that turns grammar rules into working code that reads and understands text.

github.com/python/cpython/tree/master/Tools/peg_generator

Vaya's read on this project

Problem, audience, market, and the verdict — sign in to see it.

Updates

April 2024
  • Fix toy parser in Story 1
July 2021
  • fix bug in story6/7 where looped nonterminals would be aggregated as …
October 2020
  • Rewrite README
  • Don't skip over test_ast_generation and test_c_parser; rename test->t…
  • Add Github Actions and remove Travis (#251)
  • Fix mypy
  • Fix black formatting
  • Update test requirements
  • Downport recent upstream changes to fix compilation errors (#250)
September 2020
  • Copy args action from cpython
  • Refactor update record
  • Add --uid and -v flags to print
  • Add progress reporting to pegen
  • Add --lazy flag to pegen
  • Add 'pegen' command
  • Move try_our_parser() into testutil.py
  • Add 'query' subcommand
  • New utility dataset.py to work with a database
  • Fix mypy in play.py
  • Tweak recovery output