[antlr-interest] Any tip...
Clinton Roy
clinton.roy at gmail.com
Tue Jul 10 17:26:10 PDT 2007
Hi Lloyd,
On 7/11/07, Lloyd Dupont <ld at galador.net> wrote:
>
> I got this error message:
> ExpressionGrammar.g:270:1: The following token definitions are unreachable:
> MINUS,PLUS
>
> I'm trying with the ANTLR Work interpreter on the command additive:
> additive: multiple ((PLUS^ | MINUS^) multiple)* ;
>
> with input like 1+2
>
> and I get just the token one '1' followed by NoViableAltException
>
> any idea of what could be the source of the problem?
Do you have a whitespace token? are the tokens being filtered away
from the parser ($CHANNEL = hidden / skip()) ?
cheers,
--
Clinton Roy
CSIRO - Robotics Platform Engineer
Autonomous Systems Lab
humbug.org.au - Brisbane Unix Group
azure.humbug.org.au/~croy/blog - Blog
flickr.com/photos/croy/ - Photos
More information about the antlr-interest
mailing list