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/cleanup.x | what a cleanup region runs, and which exits run it. |
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/comptime.x | translating a compile-time x2c function into Lisp. |
src/deps.x | Make dependency output for x2c translation units. |
src/diagnostics.x | structured compiler diagnostics collection. |
src/editor.x | one-request semantic editor adapter. |
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/frontend.x | configured compiler sessions and sequential source units. |
src/generate.x | generate C headers and source files. |
src/install.x | Package installation into the x2c home. |
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/regions.x | values that can outlive the region that allocated them. |
src/report.x | Command progress and completion receipts. |
src/script.x | Build-once execution of x2c scripts. |
src/sourceview.x | request-owned source overlays. |
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 workers. |