1grammar t041parameters; 2options { 3 language =Cpp; 4} 5 6@lexer::includes 7{ 8#include "UserTestTraits.hpp" 9} 10@lexer::namespace 11{ Antlr3Test } 12 13@parser::includes { 14#include "UserTestTraits.hpp" 15} 16@parser::namespace 17{ Antlr3Test } 18 19a[arg1, arg2] returns [l] 20 : A+ EOF 21 { 22 l = ($arg1, $arg2) 23 $arg1 = "gnarz" 24 } 25 ; 26 27A: 'a'..'z'; 28 29WS: ' '+ { $channel = HIDDEN }; 30