in reply to Re: •Re: Solution: Parse::RecDescent and mini-language parsing
in thread Parse::RecDescent and mini-language parsing

OK, so alternations are not as fast as I'd like {grin}. Try this... it means the same thing, but in one regex:
comparison: / <=? | = | >=? | != /x
It's important to understand that a regex is matched left-to-right for alternatives, so you have precise control over the possible matches.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: Re: •Re: Solution: Parse::RecDescent and mini-language parsing
  • Download Code