UNPKG

@fabric_v1/compiler

Version:

Fabric DSL compiler (parser, checker, IR & backends)

11 lines (10 loc) 413 B
import { ASTNode } from "../frontend/ast"; import { SemanticInfo } from "../frontend/checker"; import { IRModule } from "./lowering"; /** * Compiles a Fabric AST to IRModule. * @param ast Parsed Fabric AST. * @param info Semantic metadata (type info, symbol tables, etc). * @returns Intermediate Representation (IR) module. */ export declare function compileToIR(ast: ASTNode, info: SemanticInfo): IRModule;