If speed is of a real concern then I would suggest you look at byacc and the perl output mode. Although you will still need to write your own lexer.
This is what I have done in the past, and can bee seen in the parser included in Convert::ASN1
In reply to Re: advice with Parse::RecDescent
by gbarr
in thread advice with Parse::RecDescent
by demerphq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |