aboutsummaryrefslogtreecommitdiff
path: root/runtime/Python/tests/t036multipleReturnValues.g
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/Python/tests/t036multipleReturnValues.g')
-rw-r--r--runtime/Python/tests/t036multipleReturnValues.g25
1 files changed, 25 insertions, 0 deletions
diff --git a/runtime/Python/tests/t036multipleReturnValues.g b/runtime/Python/tests/t036multipleReturnValues.g
new file mode 100644
index 0000000..04ce14c
--- /dev/null
+++ b/runtime/Python/tests/t036multipleReturnValues.g
@@ -0,0 +1,25 @@
+grammar t036multipleReturnValues;
+options {
+ language = Python;
+}
+
+a returns [foo, bar]: A
+ {
+ $foo = "foo";
+ $bar = "bar";
+ }
+ ;
+
+A: 'a'..'z';
+
+WS :
+ ( ' '
+ | '\t'
+ | ( '\n'
+ | '\r\n'
+ | '\r'
+ )
+ )+
+ { $channel = HIDDEN }
+ ;
+