Declaration based compilation units.

This commit is contained in:
2023-09-02 20:22:08 -07:00
parent 04c78c35e0
commit b1f9e02253
26 changed files with 254 additions and 305 deletions

View File

@ -1,5 +1,5 @@
/* fibonacci sequence */
fib = { n in
fn fib(n) {
if n == 0
then 0
else if n == 1
@ -7,5 +7,7 @@ fib = { n in
else fib(n - 1) + fib(n - 2)
}
result = fib(20)
println(result)
fn main() {
result = fib(20)
println(result)
}