[antlr-interest] My C# grammar hangs antlr
Terence Parr
parrt at cs.usfca.edu
Thu Dec 28 20:59:16 PST 2006
Hi, turn on -Xwatchconversion I think it is. That will tell you
which decision has the problem. Most likely you have a rule with two
alts starting with recursive rules.
Ter
On Dec 28, 2006, at 11:23 AM, James Briant wrote:
> That grammar I posted was for 3.0b5, and when I run antlr, antlr
> hangs. :-(
>
> This is the output I get, and then it just sits there:
>
> ANTLR Parser Generator Version 3.0b5 (November 15, 2006) 1989-2006
> warning(200): csharp2.g:11:5: Decision can match input such as
> "<EOT>" using mul
> tiple alternatives: 1, 2
> As a result, alternative(s) 2 were disabled for that input
> warning(201): csharp2.g:11:5: The following alternatives are
> unreachable: 2
>
> warning(200): csharp2.g:20:18: Decision can match input such as
> "'\r''\u0000'..'
> \uFFFE'" using multiple alternatives: 1, 2
> As a result, alternative(s) 2 were disabled for that input
>
> Any ideas? Thanks.
>
> Jamie
> <csharp2.g>
More information about the antlr-interest
mailing list