develooper Front page | perl.recdescent | Postings from January 2012

parsing make like syntax

Thread Next
Yuri Shtil
January 11, 2012 15:53
parsing make like syntax
Message ID:

I need to parse make variable reference like syntax:


$(foo) should be detected first, replaced (let's say with bar) and resultant string $(bar) should be parsed the same way.
There can be any number of nested references like


Any suggestions how to define rules for this?

I used Regexp::Common to detect balanced parenthesis.

This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About