[antlr-interest] Set line/col of synthetic token from non-token

Bill Andersen bill.andersen at mac.com
Wed Jan 26 16:57:45 PST 2011


Folks,

I have this production

formula
  : outer_formula nle?
    -> ^(STMT[???,"STMT"] ....
  ;

where STMT is a synthetic token.  Question is how to pass info for line/col from whatever matches 'outer_formula' to where the STMT synthetic token is created in adaptor.create(...).  I get a tree for outer_formula, not a token.  I know how to do this with tokens.

Any help appreciated.

	.bill


More information about the antlr-interest mailing list