A lexer rule can have associated commands:
WHITESPACE: [ \r\n] -> skip;
Commands are defined after a -> at the end of the rule.
skip: Skips the matched text, no token will be emitedchannel(n): Emits the token on a different channeltype(n): Changes the emitted token typemode(n), pushMode(n), popMode, more: Controls lexer modes