[antlr-interest] Help. Who can tell me what's the mean of # in the .g file of parser?

Yu Tao yutao at td-tech.com
Mon Oct 23 22:55:49 PDT 2006


I can not find these grammer meaning in the manual doc , who can tell me
which this means? Tks



// This is a list of expressions.
expressionList
	:	expression (COMMA! expression)*
		{#expressionList = #(#[ELIST,"ELIST"], expressionList);}
//?? what's the mean of #
	;

superClassClause!
	:	( "extends" id:identifier )?
		{#superClassClause =
#(#[EXTENDS_CLAUSE,"EXTENDS_CLAUSE"],id);}   	//?? what's the mean of
#
	;
	
	
// boolean relational expressions (level 5)
relationalExpression
	:	shiftExpression
		(	(	(	LT^
				|	GT^
				|	LE^
				|	GE^
				)
				shiftExpression
			)*
		|	"instanceof"^ typeSpec[true]      //?? what's
the difference of  "instanceof"^ typeSpec and "instanceof"^
typeSpec[true]
		)
	;


More information about the antlr-interest mailing list