so... jai :D

This commit is contained in:
agra
2026-02-04 01:34:30 +02:00
commit 55fc5790e4
60 changed files with 15876 additions and 0 deletions

20
examples/05-run.sx Normal file
View File

@@ -0,0 +1,20 @@
#import "modules/std.sx";
// this will bake x to be 7 as a global constant
x :: #run compute(5);
compute :: (v: s32) -> s32 => v + 2;
main :: () {
//test
y :: #run compute(7);
c :: 2;
print("hello {}\n", x + y * c);
}
#run main();
// ** stdout after build **
// hello 25
// ** stdout after run **
// hello 25