Today's evil hack

Simon on 2002-06-08T09:49:48

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"
bee: 'b'
into this:

test : 'abhlaghc'
b : 'bhlagh'
bee : 'b'
I know this, because I had to write a Parse::RecDescent deparser too.

This lead to my wonder why there isn't a decent regex optimizer module around yet...


Perl internals

koschei on 2002-06-10T18:35:00

I always believed Perl had one internally.

Not being brave enough to venture into the Perl regex internals myself: does it?