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

Pai Deng paideng at 163.com
Sun Jul 18 20:08:13 PDT 2010


Hi, Marton,
Yes! I use ActionScript in which I can pick the solution for Java/C#.
Thanks for your help!

Best Regards,
Pai Deng



On Jul 17, 2010, at 11:11 PM, anteusz at freemail.hu wrote:

> 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
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address




More information about the antlr-interest mailing list