Re: Autotree and repeated expressions

[email protected] (Dave McD)
Newsgroups perl.recdescent
Message-ID <[email protected]>
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.