mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-16 01:15:03 +01:00
fmt
This commit is contained in:
parent
761f78de0b
commit
09ae6cbb56
5 changed files with 6 additions and 7 deletions
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue