On Wed, 2008-10-22 at 13:31 +0800, 文少华 wrote:

> Hi there,
>   In antlr 3.0.1 , it works , but now it will report error for grammar
> optoins like:
> 
> grammar test;
> 
> options {
>   k = 3;
>   filter=true;
>   output = AST; 
>   backtrack = true; 
>   memoize = true;
> }
> 
> Is this a bug or something changed but not in the change log?


It is a bug in your grammar I think. filter=true is a lexer grammar
option that cannot be used in a combined grammar. Also, are you sure you
want to use backtrack at a global level? Your parser will (usually) be
quite a lot slower than it would be if you factored the grammar. If
speed isn't an issue, and locality of bug reporting is also not a
problem, then don't worry about it though.


JIm

> BR.
> Holy
> 
> 
> List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
> Unsubscribe: 
> http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address

Reply via email to