Re: Autotree and repeated expressions
[email protected] ("Philip Coombes")
| Newsgroups | perl.recdescent |
|---|---|
| Message-ID | <[email protected]> |
True, I hadn't thought of that either. However there are rather a lot of them and I used autotree originally to avoid having to do things for each one! Thanks anyway, I've gone the non-autotree route again for now. Phil, ----- Original Message ----- From: "Dave McD" <[email protected]> To: "Philip Coombes" <[email protected]>; <[email protected]> Sent: Monday, March 11, 2002 5:27 PM Subject: Re: Autotree and repeated expressions > Why don't you just override the autotree for this rule > as: > > func: 'concat' '(' rvalue ',' rvalue ')' {bless > {lrvalue => $item[3], rrvalue => $item[5]}, $item[0] } > > Dave Mc > > --- Philip Coombes <[email protected]> > wrote: > > Hi All, > > > > In simple terms, if I am using autotree to build an > > OO parse tree and I have > > a rule of the form > > > > func: 'concat' '(' rvalue ',' rvalue ')' > > > > how do I access the second rvalue from the blessed > > object. I can only see > > one in there. > > > > Cheers, > > > > Phil, > > > > > __________________________________________________ > Do You Yahoo!? > Try FREE Yahoo! Mail - the world's greatest free email! > http://mail.yahoo.com/ >