@top T { (A | B)+ } A { "<" "x" A? ">" } B { "<<" ">>" } # Token from unrelated state can't shadow > ==> T(A(A))