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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.