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:
Neemek 2025-03-18 20:22:46 +01:00
parent 84cc845748
commit 954308b29f
Signed by: neemek
GPG key ID: 28360A8951CD0E9B
18 changed files with 1352 additions and 285 deletions

View file

@ -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() {