Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
linux2647
on Feb 20, 2022
|
parent
|
context
|
favorite
| on:
Things that used to be hard and are now easy
CPython appears to use a PEG parser for its implementation:
https://github.com/python/cpython/blob/b77158b4da449ec5b8f68...
eatonphil
on Feb 20, 2022
|
next
[–]
That's true, but it's still quite rare to see.
UncleEntity
on Feb 20, 2022
|
prev
[–]
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.
eatonphil
on Feb 20, 2022
|
parent
[–]
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: