parsing make like syntax
[email protected] (Yuri Shtil) Wed, 11 Jan 2012 15:52:56 -0800
| Newsgroups | perl.recdescent |
|---|---|
| Message-ID | <[email protected]> |
--_000_5F72830DCCB3CC4FBF80CC854C3999F18E9ED87A97HQMAIL02nvidi_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I need to parse make variable reference like syntax: $($(foo)) $(foo) should be detected first, replaced (let's say with bar) and result= ant string $(bar) should be parsed the same way. There can be any number of nested references like $(abc$(foo)def) 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 m= ay contain confidential information. Any unauthorized review, use, disclosure or di= stribution is prohibited. If you are not the intended recipient, please contact the= =20sender by reply email and destroy all copies of the original message. -------------------------------------------------------------------------= ---------- --_000_5F72830DCCB3CC4FBF80CC854C3999F18E9ED87A97HQMAIL02nvidi_--