I have the need to generate a large number of regular expressions from a set of specifications. The specification consists of regular expressions in another syntax.
They must be transformed into perl regular expressions according to the following rules:
All nested parenthesizes should be non-capturing.
The pattern matches only as a prefix of the string being matched.
The entire pattern is capturing.
In addition, I need to separate the string being matched into two parts:
The matching prefix, and rest of string.


Thankful for any ideas on how to do this. All patterns used in matching must
be precomputed from specs for speed.


The algorithms in question are intended for semantic action parsers in a compiler
construction toolkit.


"Home is not where you are born, but where your heart finds peace" -
Tommy Nordgren, "The dying old crone"


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to