[type] Parser [grammar] grammar T; s : b[2] ';' | b[2] '.' ; // decision in s drills down to ctx-dependent pred in a; b[] : a[] ; a[] : {}? ID {} | {}? ID {} ; ID : 'a'..'z'+ ; INT : '0'..'9'+; WS : (' '|'\n') -> skip ; [start] s [input] a; [output] """alt 2 """