you can output to executables now

This commit is contained in:
SpookyDervish
2025-10-19 19:01:14 +11:00
parent 31099835de
commit e04bf9053a
3 changed files with 21 additions and 33 deletions

View File

@@ -1,19 +0,0 @@
pi = Func(): Float {
return 3.141592653589793;
}
e = Func(): Float {
return 2.718281828459045;
}
rad = Func(degrees: Float): Float {
return degrees * $pi() / 180;
}
deg = Func(radians: Float): Float {
return 180 * radians / $pi();
}
sqrt = Func(n: Float): Float {
return $pow(n, 0.5);
}

View File

@@ -1,7 +1,7 @@
depend "tests/math.pla";
main = Func(): Int {
$print("%f\n", $sqrt(100.0));
return 0;
}
for (i: Int = 1; i < 100000; i+=1;) {
$print("%i\n",i);
}
return 0;
}