mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
start structs
This commit is contained in:
parent
f6f6673721
commit
b52abed441
8 changed files with 214 additions and 62 deletions
10
src/index.ts
10
src/index.ts
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue