aboutsummaryrefslogtreecommitdiff
path: root/runtime/JavaScript/tests/functional/t041parameters.g
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/JavaScript/tests/functional/t041parameters.g')
-rwxr-xr-xruntime/JavaScript/tests/functional/t041parameters.g16
1 files changed, 16 insertions, 0 deletions
diff --git a/runtime/JavaScript/tests/functional/t041parameters.g b/runtime/JavaScript/tests/functional/t041parameters.g
new file mode 100755
index 0000000..7daec8a
--- /dev/null
+++ b/runtime/JavaScript/tests/functional/t041parameters.g
@@ -0,0 +1,16 @@
+grammar t041parameters;
+options {
+ language = JavaScript;
+}
+
+a[arg1, arg2] returns [l]
+ : A+ EOF
+ {
+ l = [$arg1, $arg2];
+ $arg1 = "gnarz";
+ }
+ ;
+
+A: 'a'..'z';
+
+WS: ' '+ { $channel = HIDDEN; };