1 lexer grammar t029synpredgate; 2 options { 3 language = JavaScript; 4 } 5 6 FOO 7 : ('ab')=>A 8 | ('ac')=>B 9 ; 10 11 fragment 12 A: 'a'; 13 14 fragment 15 B: 'a'; 16 17