From 0cd0e9e6e9393b6008458935b0cff5916c05f491 Mon Sep 17 00:00:00 2001 From: Doni Pracner Date: Sun, 5 Jan 2014 20:17:30 +0100 Subject: [PATCH] new sample Rek1 - very simple recursion that is good for testing --- samples/Rek1.mj | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 samples/Rek1.mj diff --git a/samples/Rek1.mj b/samples/Rek1.mj new file mode 100644 index 0000000..41ab83b --- /dev/null +++ b/samples/Rek1.mj @@ -0,0 +1,11 @@ +program Rek1{ + void func(int i){ + print(i); + if (i>0) + func(i-1); + } + + void main() { + func(5); + } +} \ No newline at end of file -- 2.25.1