Adds the full musubu pipeline from C header to generated .lean and .c glue files, validated against SDL3/SDL_init.h. - IR types (CType, Decl, BindingIR) in Musubu/IR.lean - C type-string resolver in Musubu/TypeMap.lean (handles SDL3 typedefs) - 4-pass libclang AST walker in Musubu/Parser.lean - Lean declaration codegen in Musubu/Codegen/Lean.lean - C glue codegen in Musubu/Codegen/C.lean (with heuristic finalizer detection and smart include-path stripping) - lean-libclang updated to add getCursorNumArguments, getCursorArgument, getCursorResultTypeSpelling, and getCursorEnumConstantValue APIs - CLI flags: --dump-ir, --out-lean, --out-c, --prefix, -I - justfile recipes: build, run, fetch-sdl3, dump-ir, gen, compile-glue - docs/architecture.md documents the full pipeline and phased roadmap Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
7 lines
132 B
Lean4
7 lines
132 B
Lean4
import Musubu.IR
|
|
import Musubu.TypeMap
|
|
import Musubu.Config
|
|
import Musubu.Parser
|
|
import Musubu.Codegen.Lean
|
|
import Musubu.Codegen.C
|