1 grammar t041parameters; 2 options { 3 language = JavaScript; 4 } 5 6 a[arg1, arg2] returns [l] 7 : A+ EOF 8 { 9 l = [$arg1, $arg2]; 10 $arg1 = "gnarz"; 11 } 12 ; 13 14 A: 'a'..'z'; 15 16 WS: ' '+ { $channel = HIDDEN; }; 17