Basic type system working

This commit is contained in:
Neemek 2025-03-16 22:46:49 +01:00
parent 3f260e7ffd
commit 84cc845748
Signed by: neemek
GPG key ID: 28360A8951CD0E9B
19 changed files with 900 additions and 131 deletions

16
examples/pøck.ang Normal file
View file

@ -0,0 +1,16 @@
import "math.ang"
func r_x(t) {
return 8*(exp(-t) - t)
}
func r_y(t) {
return 5*(exp(-t) - t)
}
func r(t) {
return format("(%s, %s)", [r_x(t), r_y(t)])
}
write(r(1))
write()