Thomas Brandon wrote:
> The problem is most likely your DecimalLiteral rule:
> DecimalLiteral
>     :
>     ;
> Non-fragment lexer rules that can match no input will cause infinite loops.
> This may only occur for certain input as other input will be matched
> before ANTLR checks whether the troublesome rule can match. Having
> input that matches no other rule ensures such a rule will cause an
> infinite loop.
>
>   
Hi,

This turned out to be a bug in the rest of the implementation too - so 
the rest of the problem was not caused by parsing.

Thanks for the help.

-- 
 Ola Bini (http://olabini.com) 
 Ioke creator (http://ioke.org)
 JRuby Core Developer (http://jruby.org)
 Developer, ThoughtWorks Studios (http://studios.thoughtworks.com)
 Practical JRuby on Rails (http://apress.com/book/view/9781590598818)

 "Yields falsehood when quined" yields falsehood when quined.



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

Reply via email to