P is for Practical | |
PerlMonks |
Re: Dynamic regex assertions, capturing groups, and parsers: joy and terrorby itub (Priest) |
on Oct 03, 2005 at 19:03 UTC ( [id://497021]=note: print w/replies, xml ) | Need Help?? |
I once wrote a parser as a huge regex, full of "experimental" features. I'll never do it again. I started getting all sorts of weird errors such as segfaults, and they varied wildly between perl versions. I could never find a simple example to reproduce the crash, so I couldn't even file a proper bug report. Also, the huge regex was unmaintainable. Now I'd rather use a parser generator. I'm happy with Parse::YAPP. It's not as trendy as Parse::RecDescent, but it's way faster in my experience.
In Section
Meditations
|
|