If Statement Support

This commit is contained in:
2023-08-19 20:40:31 -07:00
parent f1645d0924
commit cccea9c2ca
25 changed files with 176 additions and 32 deletions

8
examples/fib.pork Normal file
View File

@ -0,0 +1,8 @@
fib = { n in
if n == 0
then 0
else if n == 1
then 1
else fib(n - 1) + fib(n - 2)
}
main = { in fib(20) }