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
nub31 9b4608a259 Add basic binary expression support
Current implementation is placeholder. Assembly is generated by mr. chat and is currently unchecked.
Also only 64 bit ints are supported
2025-01-26 23:20:16 +01:00

12 lines
188 B
Plaintext

let SYS_WRITE = 1;
let STD_IN = 0;
let STD_OUT = 1;
let STD_ERR = 2;
func main() {
let x = 5 * 5 + 5;
}
func write(msg: String) {
syscall(SYS_WRITE, STD_OUT, msg, strlen(msg));
}