about summary refs log tree commit diff stats
path: root/js/scripting-lang/func_call_test.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/func_call_test.txt')
-rw-r--r--js/scripting-lang/func_call_test.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/scripting-lang/func_call_test.txt b/js/scripting-lang/func_call_test.txt
new file mode 100644
index 0000000..826eb4e
--- /dev/null
+++ b/js/scripting-lang/func_call_test.txt
@@ -0,0 +1,8 @@
+/* Test function calls in case expressions */
+add : x y -> x + y;
+factorial : n -> case n of
+    0 : 1
+    _ : add n 1;
+
+test : factorial 5;
+..out test; 
\ No newline at end of file