in reply to Re: Maintaining horrible C with Parse::RecDescent
in thread Maintaining horrible C with Parse::RecDescent

Interesting, hossman!

I haven't tested it either, but I have this fear that that could be a scarily slow regex.

Could be worth a try,though.

Oh, one possible optimization would be to make the quantifier {$min_depth} instead of {$min_depth,}. That would put the regex into the faster [^;]* part quicker. Maybe? It's all guesses :)
--
Mike