[antlr-interest] Antlr v3.0ea8 : Rule return types?

Terence Parr parrt at cs.usfca.edu
Wed May 3 17:11:27 PDT 2006


On May 3, 2006, at 3:33 PM, PATERSON, Robert wrote:

> I've been playing with Antlr/Antlrworks 3.0ea8 - a fantastic
> combination, but....
> aRule returns [MyClass anInstance = null] : SOME TOKEN STUFF ;

I have not yet gotten that working...try

a returns [int x]
@init {x=0;}
	:	...
	;

THanks,
Ter



More information about the antlr-interest mailing list