[antlr-interest] (no subject)

Gerald Rosenberg gerald at certiv.net
Fri Oct 31 19:09:47 PDT 2008


At 06:39 PM 10/31/2008, =?ISO-8859-2?Q?Imre_Andr=E1s?= wrote:

>Now how can I explicitly tell that SEQUENCE is a keyword, and not a valid ID?


tokens { SQ; }

ID:        { 'SEQUENCE' }=> 'SEQUENCE'  {$type = SQ}
         | ('a'..'z'|'A'..'Z')+ ;





>Thanks,
>   András



More information about the antlr-interest mailing list