static type analysis, formatted compiler errors, hex support, composite types, updated cli, more global builtins, fix list form, fix value refs
This commit is contained in:
parent
84cc845748
commit
954308b29f
18 changed files with 1352 additions and 285 deletions
|
|
@ -2,8 +2,7 @@
|
|||
fibonacci_numbers := [
|
||||
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377,
|
||||
610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657,
|
||||
46368, 75025, 121393, 196418, 317811, 514229, 832040,
|
||||
1346269, 2178309, 3524578, 5702887, 9227465, 14930352
|
||||
46368, 75025, 121393, 196418, 317811, 514229, 832040
|
||||
]
|
||||
|
||||
func fib(n: number) number {
|
||||
|
|
@ -16,11 +15,12 @@ func fib(n: number) number {
|
|||
|
||||
n := 0
|
||||
while n < fibonacci_numbers.length() {
|
||||
print("_")
|
||||
print("-")
|
||||
n = n + 1
|
||||
}
|
||||
|
||||
write("")
|
||||
# return to start of line
|
||||
print(format("%[%D", [char(0x1B), n]))
|
||||
|
||||
x := 0
|
||||
while x < fibonacci_numbers.length() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue