[antlr-interest] Referencing upper tree node from lower level
mzukowski at yci.com
mzukowski at yci.com
Fri May 2 13:47:02 PDT 2003
You can pass the primaryExpression as an argument to elist:
[...]
| #(METHOD_CALL p:primaryExpression elist[p])
...
;
elist[AST p]
: #( ELIST (expression
{
//do something with p here
}
)*
)
;
Monty
-----Original Message-----
From: rustydstone [mailto:rustydstone at yahoo.com]
Sent: Friday, May 02, 2003 12:41 PM
To: antlr-interest at yahoogroups.com
Subject: [antlr-interest] Referencing upper tree node from lower level
Hi,
Please see example below.
Thanks
-----------------------------------------------------
[...]
| #(METHOD_CALL primaryExpression elist)
...
;
elist
: #( ELIST (expression
{
// is it possible to determine what
// prrimaryExpression this expression
// belongs to from here?
}
)*
)
;
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list