For v4, added lex modes/states: lexer grammar L2; A : 'a' ; AA : 'aa' ; mode FOO; B : 'b' ; C : 'c' ; Actions will flip between them (push/pop/flip). Ter