I could be wrong, but I'm pretty sure python is an example of a modern programming language that uses a grammar and parser generator.
Yeah, peg grammar using pegen which I think was built specifically for cpython
And is relatively new if I recall. Like they switch to it in the last 5 or so years
huh, interesting! I wonder what motivated the switch
https://peps.python.org/pep-0617/
Postgres has a yacc parser generator too.
https://github.com/postgres/postgres/blob/master/src%2Fbackend%2Fbootstrap%2Fbootparse.y
That may be more common for SQL parsers. sqlite (and pikchr) use the lemon parser generator, also written by D Richard Hipp. I ported lemon to Go as part of porting pikchr to Go.
Last updated: Jul 06 2025 at 12:14 UTC