Fixed compile script, factorial.flup implemented

This commit is contained in:
VegOwOtenks 2024-10-08 23:24:47 +02:00
parent aec860a6b8
commit 5313cc5603
2 changed files with 7 additions and 0 deletions

View file

@ -5,4 +5,5 @@ gcc `find src/ -name '*.c'` \
submodules/utilitiec/build/lib/liballocator-interface.a \
submodules/utilitiec/build/lib/libStringView.a \
submodules/utilitiec/build/lib/libScratchpad.a \
-Isubmodules/utilitiec/src \
-lm -ggdb -Wall -Wextra -pedantic -o bin/flup

View file

@ -0,0 +1,6 @@
factorial: int n -> int
| n 0 == -> 1
| 1 -> n 1 - factorial n * duplicate println
;
25 factorial