[antlr-interest] Token is not generated for IDN blah... and generated for blah... IDN

shmuel siegel antlr at shmuelhome.mine.nu
Wed Oct 6 06:50:05 PDT 2010



On 10/6/2010 2:47 PM, serge fukanchik wrote:

>      : IDN '{' modelDefinition* | modelDefinitions '}'
> 	{
> 		System.out.println($IDN);
> 	}
>      ;
>
syntax error. you have two alternatives, IDN is in the first alternative 
but the action is in the second alternative. Surround the two 
alternatives with parens.

  (modelDefinition* | modelDefinitions)




More information about the antlr-interest mailing list