Re: how to detect a circular macro by using perl

2003-03-03 Thread david
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

RE: how to detect a circular macro by using perl

2003-03-03 Thread tao wang
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

RE: how to detect a circular macro by using perl

2003-03-01 Thread Beau E. Cox
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

how to detect a circular macro by using perl

2003-03-01 Thread tao wang
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