News for hackers. Stuff that matters.
Re:Parsing: the solved problem that isn't by pederb72 on Tuesday March 15, 2011 @02:24PM (#2328732)
PEG for Lua is pretty easy to use and experiment with: http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html
Re:Parsing: the solved problem that isn't by _tef on Tuesday March 15, 2011 @03:44PM (#2329053)
notably: lpeg uses backtracking over packrat parsing
Re:Parsing: the solved problem that isn't by fanf2 on Tuesday March 15, 2011 @10:10PM (#2330384)
Packrat parsing has fairly horrible memory usage. LPEG is amazingly frugal in terms of code size, run time, and memory usage.

It's worth noting that the PEG ordered choice operator leads to much more restricted backtracking than occurs in most regex implementations, so LPEG has much more predictable performance. And unlike a DFA matched you still get straightforward capture handling.