mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-15 00:45:04 +01:00
Change let
This commit is contained in:
parent
40543b501c
commit
7c2faaecb8
9 changed files with 200 additions and 100 deletions
17
src/index.ts
17
src/index.ts
|
|
@ -10,14 +10,13 @@ import fs from "fs";
|
|||
import { exec } from "child_process";
|
||||
|
||||
const input = `
|
||||
type Uwu = (
|
||||
meow: String,
|
||||
oops: Int,
|
||||
aaa: (),
|
||||
);
|
||||
function printInt(a: Int) = ;
|
||||
|
||||
function aa(a: Int, b: Uwu): Uwu = Uwu {meow: "",oops:0,aaa:()};
|
||||
function main() = ();
|
||||
function main() = (
|
||||
let a = 0;
|
||||
let b = 0;
|
||||
printInt(a + b);
|
||||
);
|
||||
`;
|
||||
|
||||
function main() {
|
||||
|
|
@ -44,8 +43,8 @@ function main() {
|
|||
|
||||
console.log("-----AST typecked------");
|
||||
const typecked = typeck(resolved);
|
||||
|
||||
return;
|
||||
console.dir(typecked, {depth: 8});
|
||||
|
||||
|
||||
console.log("-----wasm--------------");
|
||||
const wasmModule = lowerToWasm(typecked);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue