SNAPKITTYWEST's picture
October 2026 main drop: mirror from GitHub
3ce1a40 verified
Raw History Blame Contribute Delete
365 Bytes
/**
* The full kernel pipeline: source -> AST -> IR -> wasm bytes.
*/
import { parse } from './parser.js';
import { lower } from '../ir/lowering.js';
import { emitModule } from '../../wasm/modules/codegen.js';
export function compile(source) {
const ast = parse(source);
const ir = lower(ast);
const bytes = emitModule(ir);
return { ast, ir, bytes };
}