start structs

This commit is contained in:
nora 2023-07-27 20:56:02 +02:00
parent f6f6673721
commit b52abed441
8 changed files with 214 additions and 62 deletions

View file

@ -10,8 +10,11 @@ import fs from "fs";
import { exec } from "child_process";
const input = `
function main() = ();
function test(i: Int, j: Int): Bool = false == (i == 0);
type Uwu = (
meow: String,
);
function main(a: Int, b: Uwu) = ();
`;
function main() {
@ -37,9 +40,10 @@ function main() {
console.log(resolvedPrinted);
console.log("-----AST typecked------");
const typecked = typeck(resolved);
return;
console.log("-----wasm--------------");
const wasmModule = lowerToWasm(typecked);
const moduleStringColor = writeModuleWatToString(wasmModule, true);