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