News for hackers. Stuff that matters.
Re:PEG Parsers by coleifer on Monday July 22, 2019 @08:27PM (#20503470)
I've made a few half-hearted attempts to use lpeg:

http://www.inf.puc-rio.br/~roberto/lpeg/

The operator overloads are a lot to reckon with, beyond just the concepts, but it seems like there's something there worthwhile of study and learning. Hope to give it another try.

Be interested in any introductory material, if anyone has some good links.

Re:PEG Parsers by hwj on Tuesday July 23, 2019 @02:12PM (#20508880)
> Remove all the Javascript from an html page.

This is probably the best reason I've seen why you should learn parsing.

Re:PEG Parsers by coleifer on Tuesday July 23, 2019 @06:52AM (#20505759)
They're... beautiful.
Re:PEG Parsers by _8huj on Monday July 22, 2019 @09:09PM (#20503663)
I keep feeling like I'm following in the steps of giants with lpeg. I loved my introduction to it when I was big on Lua. Some of those operators take functions with such strange signatures - until you try to do something clever later, and your realize you're being passed exactly the arguments you need to make it work.