This commit is contained in:
nora 2023-12-15 23:08:23 +01:00
parent 7fec1b1ce7
commit a22cc15b59
11 changed files with 54 additions and 54 deletions

6
std/io.nil Normal file
View file

@ -0,0 +1,6 @@
import ("wasi_snapshot_preview1" "fd_write")
fd_write(fd: I32, ciovec_ptr: I32, ciovec_len: I32, out_ptr: I32): I32;
function print(s: String) = (
let s: (I32, I32) = ___transmute(s);
);

View file

@ -1,5 +1,6 @@
mod rt;
mod list;
mod io;
function printlnI32(x: I32) = (
printI32(x);