[antlr-interest] Using token values in other java classes (newbie)

Paul J. Lucas pauljlucas at mac.com
Wed Jan 19 11:01:43 PST 2005


On Wed, 19 Jan 2005, Peter Robinson wrote:

> status_type returns [ int x = LIVE_KW /* the default */ ]
> 		{
>                     x = LA(1);
>                 }:
>   ( LIVE_KW  |  SECONDARY_KW  | DISCONTINUED_KW  |  NEWENTRY_KW  )
> ;

	You don't need the default assigment: it's immediately
	reassigned.

	- Paul



More information about the antlr-interest mailing list