Problems? Is your data what you think it is? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I'm guessing now ...
Here a "naive" approach by embedding Perl code. When parsing a recursive syntax you are able to put a Perl code after each match pattern using (?{...}) and $^N will give you the content of this last match. Compare this example from perlre
instead of storing the match you might concatenate it to a "result" string or print it to a channel > and I want to change all identifiers to upper case in the text depending on match pattern execute a uc before returning the result.
Cheers Rolf
In reply to Re: Positions of certain tokens in syntax tree
by LanX
|
|