grammar t043synpred; options { language =Cpp; } @lexer::includes { #include "UserTestTraits.hpp" } @lexer::namespace { Antlr3Test } @parser::includes { #include "UserTestTraits.hpp" } @parser::namespace { Antlr3Test } a: ((s+ P)=> s+ b)? E; b: P 'foo'; s: S; S: ' '; P: '+'; E: '>';