Add I32, mirroring Wasm i32

This commit is contained in:
nora 2023-07-30 14:53:43 +02:00
parent 89dbb50add
commit 50e82066c9
5 changed files with 28 additions and 3 deletions

View file

@ -10,11 +10,15 @@ import fs from "fs";
import { exec } from "child_process";
const input = `
// import "wasi_snapshot_preview1" "fd_write"(a: I32, b: I32, c: I32, d: I32): I32;
function main() = (
loop (no(break););
uwu(10);
);
function meow(a: I32): I32 = a;
function no(a: !): String = a;
function uwu(a: Int) = if a != 0 then (