I need lexer to parse two different character expressions as one expression.
So I've something like this,
rootPath : 'A' rootType SEP childPath; //my output should be AB:2 or AC:4
childPath : RESERVED_NUMBERS;
rootType : ONE_LETTER;
SEP: ':' RESERVED_NUMBERS :[1-9] ONE_LETTER : [A-Z]
I'm getting error when I'm parsing this, How can I combine 'A' and ONE_LETTER into single string