NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Saturday June 08, 2002
Today's evil hack
An optimizer for Parse::RecDescent. It's not totally finished, and has a few glaring bugs in it, but it can turn this:
test: 'a' b /c/
b: bee "hlagh"
test : 'abhlaghc'
I know this, because I had to write a Parse::RecDescent deparser too.
b : 'bhlagh'
bee : 'b'
This lead to my wonder why there isn't a decent regex optimizer module around yet...
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.