[antlr-interest] Looping forever on some input
ola.bini at gmail.com
Thu Apr 2 02:03:35 PDT 2009
Thomas Brandon wrote:
> The problem is most likely your DecimalLiteral rule:
> 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.
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.
More information about the antlr-interest