[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:

 DASH
  : '-'
  ;

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?

thanks,
David.



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

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

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list