Fixed compile script, factorial.flup implemented
This commit is contained in:
parent
aec860a6b8
commit
5313cc5603
2 changed files with 7 additions and 0 deletions
1
make.sh
1
make.sh
|
@ -5,4 +5,5 @@ gcc `find src/ -name '*.c'` \
|
||||||
submodules/utilitiec/build/lib/liballocator-interface.a \
|
submodules/utilitiec/build/lib/liballocator-interface.a \
|
||||||
submodules/utilitiec/build/lib/libStringView.a \
|
submodules/utilitiec/build/lib/libStringView.a \
|
||||||
submodules/utilitiec/build/lib/libScratchpad.a \
|
submodules/utilitiec/build/lib/libScratchpad.a \
|
||||||
|
-Isubmodules/utilitiec/src \
|
||||||
-lm -ggdb -Wall -Wextra -pedantic -o bin/flup
|
-lm -ggdb -Wall -Wextra -pedantic -o bin/flup
|
||||||
|
|
6
test-inputs/factorial.flup
Normal file
6
test-inputs/factorial.flup
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
factorial: int n -> int
|
||||||
|
| n 0 == -> 1
|
||||||
|
| 1 -> n 1 - factorial n * duplicate println
|
||||||
|
;
|
||||||
|
|
||||||
|
25 factorial
|
Loading…
Reference in a new issue