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/ast.x | shared helpers for x2c compiler AST nodes. |
src/bootstrap.x | Source-bearing APE to native x2c transition. |
src/build.x | Typed native build request and artifact graph. |
src/cache.x | constant caching for x2c code generation. |
src/cli.x | x2c command-line parsing and presentation. |
src/collect.x | source-ordered shallow symbol collection and replay. |
src/compiler.x | core x2c compiler state and operations. |
src/deps.x | Make dependency output for x2c translation units. |
src/diagnostics.x | structured compiler diagnostics collection. |
src/emit.x | emit C tokens from x2c ASTs. |
src/expressions.x | x2c expression parsing. |
src/format.x | code formatting helpers for the x2c compiler. |
src/generate.x | generate C headers and source files. |
src/lambda.x | lambda transformation helpers for the x2c compiler. |
src/literals.x | x2c literal and lambda parsing. |
src/macros.x | compile-time macro definitions and expression expansion. |
src/main.x | x2c command dispatch. |
src/parse.x | x2c recursive-descent parser core. |
src/project.x | x2c project manifests. |
src/protocol.x | Protocol collection and per-unit semantic registry. |
src/report.x | Command progress and completion receipts. |
src/snapshot.x | deterministic compiler symbol snapshot I/O. |
src/statements.x | x2c statement parsing. |
src/toolchain.x | Host preprocessing, compilation, archive, and link actions. |
src/transform.x | x2c AST transformation pipeline. |
src/type.x | x2c semantic types. |
src/utils.x | System utilities for environment discovery and child processes. |