Oleksiy Pylypenko
unread,Mar 31, 2013, 6:31:22 PM3/31/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to antlr-di...@googlegroups.com
Input string is " " i.e. one space.
I have such rule:
WhiteSpace
: ('\t' | '\v' | '\f' | ' ' | '\u00A0') {$channel=HIDDEN;}
;
Here is my tokens: [[@0,0:0=' ',<24>,channel=99,1:0], [@1,1:1='<EOF>',<-1>,1:1]]
And during parsing:
Caused by: java.lang.NullPointerException
at org.antlr.runtime.Parser.getMissingSymbol(Parser.java:73)
at org.antlr.runtime.BaseRecognizer.recoverFromMismatchedToken(BaseRecognizer.java:611)
at org.antlr.runtime.BaseRecognizer.match(BaseRecognizer.java:115)