[antlr-interest] Question concerning writing a TreeParser rule

Stritzel.Nils at infineon.com Stritzel.Nils at infineon.com
Wed Apr 26 02:54:45 PDT 2006


Hi,

In my parser I have the following rule:

batchExprList 
	: 
	batchExpr (SEP^ batchExpr)*	
	;

Which describes a list of expressions separated by "\".


I could need some advice or pointer to the right place in the
documentation to figure out, how to implement a TreeParser rule that
returns an Array or a ArrayList containing the evaluated batchExpr (i.e.
batchExprList returns [ArrayList r] ).
Thanks,

Nils


More information about the antlr-interest mailing list