I want to match a list of well known identifiers and if there's no well known identifier I want it to become something like a default token. It would be something like:
TOKEN1: 'Token1' ;
TOKEN2: 'Token2' ;
DEFAULT: NONE OF THE ABOVE AND MUST FOLLOW LETTER (LETTER|NUMBER)*;
Anyone know if it's possible to accomplish that?
Regards,
Rui