[type] Parser [grammar] grammar T; s @init { } @after { } : r=a ; a : 'x' { } ; [start] s [input] x [output] [a, s] (a x)