Hacker News new | ask | show | jobs
by UK-AL 3561 days ago
Honestly, having written a few a parsers, i prefer PEG with recursive descent, or parser combinator.

I find recursive descent parsers are easy to understand, write, debug(you can drop in a breakpoint a follow it through), and the resultant code is actually readable and clean. It's also fairly easy to add error reporting and recovery. As long as you don't do complicated stuff, they're really fast to.

You don't particularly need to be an expert to write recursive descent parsers either.