Tao Wang wrote:
> Hi Everyone,
> I'm trying to parse lines of macros definitions as
> following:
>
> AV $(G)/er $(M)/q $(T)/w/f
> Gter/eee
> M$(W)
> Tg/ee/fet
> W$(AV)
>
here is another way of doing it:
#!/usr/bin/perl -w
use strict;
my $code =<<'CODE';
AV $(G)/er $(M)/q
thanks a lot. I'll try. :)
--- "Beau E. Cox" <[EMAIL PROTECTED]> wrote:
> Hi Tao,
> > -Original Message-
> > From: tao wang [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, March 01, 2003 9:49 AM
> > To: [EMAIL PROTECTED]
> > S
Hi Tao,
> -Original Message-
> From: tao wang [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 01, 2003 9:49 AM
> To: [EMAIL PROTECTED]
> Subject: how to detect a circular macro by using perl
>
>
> Hi Everyone,
> I'm trying to parse lines of macros def
Hi Everyone,
I'm trying to parse lines of macros definitions as
following:
AV $(G)/er $(M)/q $(T)/w/f
Gter/eee
M$(W)
Tg/ee/fet
W$(AV)
You can see the AV is actually a circular macro since
the AV -> M -> W-> AV. I'm think about create a tree
to do it. Is it possible? and how