I am new to this section, i want to identify two digit integers in following range [1-3][0-9]. i wrote it as
goal : firstD secondD WS firstD secondD;
firstD : '1'|'2'|'3';
secondD : '0'|'1'|'2'|'3'|'4'|'5'|'6'|'7'|'8'|'9' ;
WS : (' '|'\t'|'\n'|'\r')+ {skip();} ;
but this gives the MismatchedTokenException. is there anything wrong in my grammer ?