[antlr-interest] Antlr Grammer help

Johannes Luber JALuber at gmx.de
Wed Feb 11 04:36:51 PST 2009


> Hi All,
> 
> I am new to Antlr.
> I have one grammer file with this syntax:
> 
> *option_statement !*  : "option" ( "base" (NUMBER)?
>                    | "compare" ("text"|"binary"|"database")?
>                    | "explicit"
>                    | "private" "module"
>                    | "internal" );
> *goto_statement !*  : "goto" goto_label;
> 
> What does this exclaimatory mark significants here?
>  i have generated parser from both ways keeping and removing and there are
> some change correspondingly.
> 
> Could anybody make me understand this ?
> 
> ANy help would be appreciated.
> 
> Thanks and Regards,
> Gunjan

Are you using ANTLR 3 or ANTLR 2.7.7? AFAIK, using ! at this place is used only in ANTLR 2.7.7 grammars. On <http://antlr2.org/> you might find the documentation.

Johannes

-- 
Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL 
für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a


More information about the antlr-interest mailing list