I have a grammar like this:
grammar a;
rule : cccc direction;
cccc: Char Char Char Char;
direction: Digit Digit Digit 'V' Digit Digit Digit;
Char : [A-Z];
Digit: [0-9];
WS: [ \t\n\r=] ->skip;
I want parser String "AVBC 120V230" ,but i got tips:
line 1:1 extraneous input 'V' expecting Char
line 1:5 missing Char at '1'
what should I do ? thanks.
