4 ms·
CPython appears to use a PEG parser for its implementation: https://github.com/python/cpython/blob/b77158b4da449ec5b8f682816a79d004fd65ed07/Grammar/python.gram
by linux2647 5y ago
CPython appears to use a PEG parser for its implementation: https://github.com/python/cpython/blob/b77158b4da449ec5b8f682816a79d004fd65ed07/Grammar/python.gram https://github.com/python/cpython/blob/b77158b4da449ec5b8f68...
- eatonphil 5y agoThat's true, but it's still quite rare to see.
- UncleEntity 5y agoPretty 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.
- eatonphil 5y agoNo they moved from pgen, a custom parser generator, to this PEG parser. The parser was never handwritten.