mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
fix many things
This commit is contained in:
parent
02bbd8ec1e
commit
7cd50ab554
7 changed files with 269 additions and 51 deletions
12
src/index.ts
12
src/index.ts
|
|
@ -10,8 +10,13 @@ import fs from "fs";
|
|||
import { exec } from "child_process";
|
||||
|
||||
const input = `
|
||||
function main() = (
|
||||
1 + 2 * 3;
|
||||
function main() = uwu(10);
|
||||
|
||||
function a() = ;
|
||||
|
||||
function uwu(a: Int) = if a != 0 then (
|
||||
print("uwu\n");
|
||||
uwu(a - 1);
|
||||
);
|
||||
`;
|
||||
|
||||
|
|
@ -39,7 +44,8 @@ function main() {
|
|||
|
||||
console.log("-----AST typecked------");
|
||||
const typecked = typeck(resolved);
|
||||
console.dir(typecked, { depth: 8 });
|
||||
const typeckPrinted = printAst(typecked);
|
||||
console.log(typeckPrinted);
|
||||
|
||||
console.log("-----wasm--------------");
|
||||
const wasmModule = lowerToWasm(typecked);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue