1grammar t036multipleReturnValues; 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 returns [foo, bar]: A 20 { 21 $foo = "foo"; 22 $bar = "bar"; 23 } 24 ; 25 26A: 'a'..'z'; 27 28WS : 29 ( ' ' 30 | '\t' 31 | ( '\n' 32 | '\r\n' 33 | '\r' 34 ) 35 )+ 36 { $channel = HIDDEN } 37 ; 38 39