[antlr-interest] “illegal option caseSensitive” in ANTLR v3?

anteusz at freemail.hu anteusz at freemail.hu
Sat Jul 17 08:11:52 PDT 2010


7/17/2010 4:44 PM keltezéssel, Pai Deng írta:
> Hi, guys,
>
> I'm new to ANTLR, using latest version 3.2.
> When I try generate my first parser, there is always errors in console...as following:
>
> error(133): Simple.g:3:1: illegal option caseSensitive
> error(133): Simple.g:3:1: illegal option testLiterals
>
> The options fragment in the grammar file is:
>
> options {
> 	language=ActionScript;
> 	k=3;
> 	caseSensitive=false;
> 	testLiterals=false;
> }
>
> Yes the error message is clear enough. I just want to confirm are the options 'caseSensitive' and 'testLiterals' not supported in latest ANTLR?
> I can see the options on ANTLR v2's manual. If they are removed in v3, what should I do to get the same/similar functions?
>
> Anyone can help?
> Many thanks.
>
>
> Best Regards,
> Pai Deng
>
>
>
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
>
>    
Yes, there is no such option in Antlr 3 any more.
Depending on your target you have to write some code,
There is a link which explains the solution:

http://www.antlr.org/wiki/pages/viewpage.action?pageId=1782

Marton Papp


More information about the antlr-interest mailing list