Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Provisional API: This reference documents current compiler behavior. Compatibility is not yet promised.

Compiler API (provisional)

Functions and types exposed by each compiler module.

ModuleDescription
src/ast.xshared helpers for x2c compiler AST nodes.
src/bootstrap.xSource-bearing APE to native x2c transition.
src/build.xTyped native build request and artifact graph.
src/cache.xconstant caching for x2c code generation.
src/cli.xx2c command-line parsing and presentation.
src/collect.xsource-ordered shallow symbol collection and replay.
src/compiler.xcore x2c compiler state and operations.
src/deps.xMake dependency output for x2c translation units.
src/diagnostics.xstructured compiler diagnostics collection.
src/emit.xemit C tokens from x2c ASTs.
src/expressions.xx2c expression parsing.
src/format.xcode formatting helpers for the x2c compiler.
src/generate.xgenerate C headers and source files.
src/lambda.xlambda transformation helpers for the x2c compiler.
src/literals.xx2c literal and lambda parsing.
src/macros.xcompile-time macro definitions and expression expansion.
src/main.xx2c command dispatch.
src/parse.xx2c recursive-descent parser core.
src/project.xx2c project manifests.
src/protocol.xProtocol collection and per-unit semantic registry.
src/report.xCommand progress and completion receipts.
src/snapshot.xdeterministic compiler symbol snapshot I/O.
src/statements.xx2c statement parsing.
src/toolchain.xHost preprocessing, compilation, archive, and link actions.
src/transform.xx2c AST transformation pipeline.
src/type.xx2c semantic types.
src/utils.xSystem utilities for environment discovery and child processes.