[antlr-interest] Expected token apparently not expected?!

David Bullock db at dawnbreaks.net
Thu Sep 9 11:13:17 PDT 2004

Hi folks,

I have a simple lexer which defines:

  : '-'

And a simple parser which uses the DASH token.

But I'm getting an exception that says:

Exception in thread "main" line 1:12: expecting DASH, found '-'
        at antlr.Parser.match(Parser.java:213)

Which is way too tricky for me!  Any clue
what might be going wrong?


Yahoo! Groups Links

<*> To visit your group on the web, go to:

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

More information about the antlr-interest mailing list