http server

This commit is contained in:
agra
2026-02-17 16:57:12 +02:00
parent 66034b4fec
commit 4fd87309d9
17 changed files with 437 additions and 113 deletions

View File

@@ -10,26 +10,26 @@ sum :: (args: ..s32) -> s32 {
print_all :: (args: ..s32) {
for args: (it) {
write(int_to_string(it));
write(" ");
out(int_to_string(it));
out(" ");
}
write("\n");
out("\n");
}
main :: () -> s32 {
write(int_to_string(sum(10, 20, 30)));
write("\n");
out(int_to_string(sum(10, 20, 30)));
out("\n");
print_all(1, 2, 3, 4, 5);
arr : [3]s32 = .[10, 20, 30];
write(int_to_string(sum(..arr)));
write("\n");
out(int_to_string(sum(..arr)));
out("\n");
for arr: (it) {
write(int_to_string(it));
write(" ");
out(int_to_string(it));
out(" ");
}
write("\n");
out("\n");
0;
}