about summary refs log tree commit diff stats
path: root/js/scripting-lang/tests/dev_01_simple_test.txt
diff options
context:
space:
mode:
Diffstat (limited to 'js/scripting-lang/tests/dev_01_simple_test.txt')
-rw-r--r--js/scripting-lang/tests/dev_01_simple_test.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/scripting-lang/tests/dev_01_simple_test.txt b/js/scripting-lang/tests/dev_01_simple_test.txt
new file mode 100644
index 0000000..74edad2
--- /dev/null
+++ b/js/scripting-lang/tests/dev_01_simple_test.txt
@@ -0,0 +1,9 @@
+/* Simple test for function call parsing */
+
+factorial : n ->
+  when n is
+    0 then 1
+    _ then n * (factorial (n - 1));
+
+result : factorial 5;
+..out result;
\ No newline at end of file