Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

CPython appears to use a PEG parser for its implementation: https://github.com/python/cpython/blob/b77158b4da449ec5b8f68...


That's true, but it's still quite rare to see.


Pretty sure that’s relatively new and had a hand written parser for most of their history.

…which also implies that it used to be hard and now isn’t.


No they moved from pgen, a custom parser generator, to this PEG parser.

The parser was never handwritten.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: