Provisional API: This reference documents current compiler behavior. Compatibility is not yet promised.
Compiler API (provisional)
Functions and types exposed by each compiler module.
| Module | Description |
|---|---|
src/adapter-memo.x | memoized compiler adapter construction. |
src/ast-rewrite.x | rewrite immediate AST children through canonical Lists. |
src/ast.x | shared helpers for x2c compiler AST nodes. |
src/builtins.x | the built-in macros’ compile-time algorithms. |
src/cache.x | cached literal slots and deferred file-static initializers. |
src/deps.x | Make dependency output for x2c translation units. |
src/diagnostics.x | compiler diagnostic storage and rendering. |
src/expressions-reports.x | expression typing diagnostics. |
src/fields.x | statements that copy or set named fields. |
src/format.x | code formatting helpers for the x2c compiler. |
src/frontend.x | configured compiler sessions and source units. |
src/grammar.x | the source forms that lowering recognizes. |
src/lambdas.x | lambda parsing and capture resolution. |
src/linked-meta.x | shipped meta code compiled into the compiler. |
src/main.x | x2c command dispatch. |
src/meta-helper-client.x | the compiler’s side of the project meta helper. |
src/meta-project.x | the project meta build. |
src/operator-ledger.x | binary operator facts and case projections. |
src/parse-reports.x | package, binding, and alias diagnostics. |
src/preprocess.x | C preprocessor directives in x2c source. |
src/report.x | Command progress and completion receipts. |
src/sourceview.x | request-owned source overlays. |
src/stage.x | the values crossing between meta code and the program. |
src/statements.x | x2c statement parsing. |
src/toolchain.x | Host preprocessing, compilation, archive, and link actions. |
src/translation.x | synchronous compiler translation requests. |
src/type-ledger.x | the compiler’s Var tag tables, projected from the ledger. |
src/type.x | x2c semantic types. |
src/utils.x | System utilities for environment discovery and workers. |
src/callables/callables.x | callable values lowered to C helpers. |
src/cleanup/cleanup.x | cleanup regions and the transfers that leave them. |
src/cli/cli.x | x2c command-line parsing and presentation. |
src/collect/collect.x | source-ordered shallow symbol collection and replay. |
src/compiler/compiler.x | one x2c unit’s translation state and its two parses. |
src/components/bracket-access.x | Bracket access policy: Array and Map mutation through their typed helpers, and any other participant’s read, store, and update through its indexing members, with each operand evaluated once, in order. Getter resolution remains with admission. |
src/components/collection-literals.x | Array and Map literals. |
src/components/delegate-members.x | delegate fields. |
src/components/destructuring.x | flat List destructuring. |
src/components/dynamic-operators.x | dynamic operators. |
src/components/interpolation.x | interpolated Strings. |
src/components/lambda-functions.x | lambda lowering. |
src/components/pattern-match.x | match statements. |
src/components/printf-format.x | Var values in printf-family formats. |
src/components/protocol-adapters.x | protocol adapters and Var descriptors. |
src/components/raise.x | raise. |
src/components/string-switch.x | switches on a String. |
src/components/try-catch.x | try, catch, and finally. |
src/emit/emit.x | C tokens from normalized x2c ASTs. |
src/expressions/expressions.x | expression syntax and its resolution. |
src/generate/generate.x | the generated header and source of one unit. |
src/initializers/initializers.x | brace initializer conversion. |
src/literals/literals.x | x2c literal parsing. |
src/macros/macros.x | source macros and the compile-time Lisp they run. |
src/meta-group/meta-group.x | a unit’s meta group, emitted as C. |
src/meta-native/meta-native.x | meta functions and the native code they call. |
src/meta-sdk/meta-sdk.x | the compiler’s answers to lib/meta.x operations. |
src/parse/parse.x | x2c declarations, parsed from source or constructed. |
src/project/project.x | x2c project manifests. |
src/protocol/protocol.x | protocols from declaration to conform forms. |
src/regions/regions.x | values that can outlive the region that allocated them. |
src/symtab/symtab.x | the compiler’s semantic symbol table. |
src/transform/transform.x | x2c AST transformation pipeline. |