what is the trick? why that 3 lines simple grammar does not recognize my character?

0 views
Skip to first unread message

tutankamun

unread,
Nov 27, 2007, 1:34:39 AM11/27/07
to PlacidSystems.AntlrStudio
I wrote a sample grammar shown below; grammar sample;

mainRule : TWOCHARS ;

NCHAR : 'N' ;

TWOCHARS : 'A' | 'N' ;
That is all and i am trying to recognize 'N' (without quote)character
but it gives MismatchTokenException. What do i miss? What is the
error? Why it does not recognize over mainRule->TWOCHARS->'N' simply?

Prashant Deva

unread,
Nov 28, 2007, 1:34:36 PM11/28/07
to antlr...@googlegroups.com
This really belongs on the antlr-interest mailing list and not here.
This forum is specific to queries regarding antlr studio itself.

Prashant

Reply all
Reply to author
Forward
0 new messages