about summary refs log tree commit diff stats
path: root/js/baba-yaga/scratch/baba/simple.baba
diff options
context:
space:
mode:
Diffstat (limited to 'js/baba-yaga/scratch/baba/simple.baba')
-rw-r--r--js/baba-yaga/scratch/baba/simple.baba8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/baba-yaga/scratch/baba/simple.baba b/js/baba-yaga/scratch/baba/simple.baba
new file mode 100644
index 0000000..e0f0b33
--- /dev/null
+++ b/js/baba-yaga/scratch/baba/simple.baba
@@ -0,0 +1,8 @@
+x : 2 + 3;
+io.out x;
+inc : a -> a + 1;
+io.out (inc 4);
+y : when 1 is
+  1 then 10
+  _ then 20;
+io.out y;