we-like-parsers / pegen

PEG parser generator for Python
https://we-like-parsers.github.io/pegen/
MIT License
155 stars 33 forks source link

Merge pegen from cpython #85

Closed phorward closed 1 year ago

phorward commented 1 year ago

This is a merge of the current pegen state (commit hash 87be8d95228ee95de9045cf2952311d20dc5de45) from cpython into pegen.

I've also made some code restructuring:

  1. The nullable detection went into grammar.py, and
  2. the classes in parser_generator.py where re-arranged and make use of the grammar rather than the rules.

I'm planning to do further restructuring soon. pegen should become the base for a project idea I would like to start, therefore its modules and classes will be cleaned-up and re-arranged.

MatthieuDartiailh commented 1 year ago

Given the currently low level of availability from the maintainers, could you try to focus on a single change at a time ?

phorward commented 1 year ago

Given the currently low level of availability from the maintainers, could you try to focus on a single change at a time ?

Hello @MatthieuDartiailh, okay I will try to do so, and close this PR for now. In general, are there plans for the future of pegen? Maybe we can discuss this also by email or similar.