Hacking on Gruel
Reference material for contributors working on the compiler itself. For language usage (rather than compiler internals), start with Learn Gruel.
Specification
- Gruel Language Specification — the normative definition of the language
Library crates
API documentation generated by rustdoc for each library crate in the workspace.
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