you can output to executables now
This commit is contained in:
@@ -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);
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user