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