News for hackers. Stuff that matters.
Re:Making a Pratt Parser Generator by wirthjason on Friday September 18, 2020 @08:52PM (#24523666)
Thorsten Ball’s “Writing an Interpreter in Go” has a very in-depth walkthrough of building a Pratt parser. It’s a very good read/tutorial.

Maybe it’s just me but it seems there’s a lot of language design coming out recently. E.g. Bob Nystrom has “Crafting Interpreters.” It really like that language design and parsing gets more attention, which is great because it’s fascinating stuff.

Re:Making a Pratt Parser Generator by mamp on Friday September 18, 2020 @10:43PM (#24524456)
My favourite article on Pratt parsing, it’s in Rust but easy to port to any language:

https://matklad.github.io/2020/04/13/simple-but-powerful-pra...

Re:Making a Pratt Parser Generator by RobertJacobson on Saturday September 19, 2020 @12:07PM (#24528402)
Matklad follows Norvell's excellent exposition in these two articles pretty closely:

http://www.engr.mun.ca/~theo/Misc/exp_parsing.htm

http://www.engr.mun.ca/~theo/Misc/pratt_parsing.htm

Matklad's stuff is really great. I wish he had cited Norvell, though.