[type] CompositeLexer [grammar] lexer grammar M; import S; A : 'a' B {} ; WS : (' '|'\n') -> skip ; [slaveGrammar] lexer grammar S; A : 'a' {} ; B : 'b' {} ; [input] ab [output] M.A [@0,0:1='ab',<1>,1:0] [@1,2:1='',<-1>,1:2]