This commit is contained in:
nora 2023-07-29 21:32:35 +02:00
parent 761f78de0b
commit 09ae6cbb56
5 changed files with 6 additions and 7 deletions

View file

@ -58,7 +58,7 @@ export type ExprLet = {
type?: Type; type?: Type;
rhs: Expr; rhs: Expr;
// IMPORTANT: This is (sadly) shared with ExprBlock. // IMPORTANT: This is (sadly) shared with ExprBlock.
local?: LocalInfo, local?: LocalInfo;
}; };
export type ExprBlock = { export type ExprBlock = {

View file

@ -42,8 +42,7 @@ function main() {
console.log("-----AST typecked------"); console.log("-----AST typecked------");
const typecked = typeck(resolved); const typecked = typeck(resolved);
console.dir(typecked, {depth: 8}); console.dir(typecked, { depth: 8 });
console.log("-----wasm--------------"); console.log("-----wasm--------------");
const wasmModule = lowerToWasm(typecked); const wasmModule = lowerToWasm(typecked);

View file

@ -1,3 +1,3 @@
export function encodeUtf8(s: string): Uint8Array { export function encodeUtf8(s: string): Uint8Array {
return new TextEncoder().encode(s); return new TextEncoder().encode(s);
} }