Crates
The Gruel compiler is organized as a Cargo workspace. The API documentation below is generated by rustdoc from the source of each library crate.
These docs describe internal compiler APIs and are primarily useful for contributors. For the language itself, see the Specification and Tutorial.
Library crates
gruel-air— Typed IR produced by semantic analysisgruel-builtins— Built-in type definitions (String, Vec, etc.)gruel-cfg— Control flow graph construction and optimizationgruel-codegen-llvm— LLVM-based code generationgruel-compiler— Compiler pipeline orchestrationgruel-error— Error types and compiler diagnosticsgruel-lexer— Tokenization of Gruel source codegruel-parser— AST construction from token streamgruel-rir— Untyped IR (post-parse, pre-semantic analysis)gruel-span— Source location trackinggruel-target— Target platform configuration