gvanrossum/pegen

Experiments for the official PEG parser generator for Python

280

stars

601

commits

Python

primary language

Apr 17, 2024

updated

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

README

PEG parser generator experiments

NOTE: The official PEG generator for Python 3.9 and later is now included in the CPython repo under Tools/peg_generator/.

See also PEP 617.

The code here is a modified copy of that generator where I am experimenting with error recovery.

The code examples for my blog series on PEG parsing also exist here (in story1/, story2, etc.).

Blog series

I've written a series of blog posts on Medium about PEG parsing:

I gave a talk about this at North Bay Python: Writing a PEG parser for fun and profit

Contributors

gvanrossum

456 commits

lysnikolaou

67 commits

pablogsal

64 commits

gvanrossum/pegen

Experiments for the official PEG parser generator for Python

280

stars

601

commits

Python

primary language

Apr 17, 2024

updated

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

README

PEG parser generator experiments

NOTE: The official PEG generator for Python 3.9 and later is now included in the CPython repo under Tools/peg_generator/.

See also PEP 617.

The code here is a modified copy of that generator where I am experimenting with error recovery.

The code examples for my blog series on PEG parsing also exist here (in story1/, story2, etc.).

Blog series

I've written a series of blog posts on Medium about PEG parsing:

I gave a talk about this at North Bay Python: Writing a PEG parser for fun and profit

Contributors

gvanrossum

456 commits

lysnikolaou

67 commits

pablogsal

64 commits

Languages

Python

98.9%