[antlr-interest] java.tree.g: A way to get parent of primaryExpression?

rustydstone rustydstone at yahoo.com
Sat May 17 04:08:14 PDT 2003


When calculating primary expression, I need somehow to determine the
immediate parent of primary expression. In other words, primary
expression will be calculated differently if the parent is, e.g.,
unary minus or regular minus.

Any ideas? Thanks

--------------------------------------------------

expr:	#(QUESTION expr expr expr)
[...]
  |     #(MINUS expr expr)
[...]
  |     #(UNARY_MINUS expr)
  |     #(UNARY_PLUS expr)
  |     primaryExpression
;




 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list