This repository has been archived on 2025-10-23. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nub-lang-archive/Nub.Lang/Nub.Lang/Input/program.nub
2025-01-26 22:23:48 +01:00

15 lines
232 B
Plaintext

let SYS_WRITE = 1;
let STD_IN = 0;
let STD_OUT = 1;
let STD_ERR = 2;
func main() {
let x = "test\n";
write(x);
x = "uwu\n";
write(x);
}
func write(msg: String) {
syscall(SYS_WRITE, STD_OUT, msg, strlen(msg));
}