lexer grammar t029synpredgate; options { language =Cpp; } @lexer::includes { #include "UserTestTraits.hpp" } @lexer::namespace { Antlr3Test } FOO : ('ab')=> A | ('ac')=> B ; fragment A: 'a'; fragment B: 'a';