Appearance
Compiler internals
How helix turns author code into files. Each page covers one stage.
buildDatapack(dp) runs everything after the AST and returns Map<path, contents>. dp.writeDatapack(path) writes that map to disk. Nothing before the write touches the disk, which is why the playground can run helix in a browser.
Where the code lives
| Stage | Folder (helix/src/core/) |
|---|---|
| Fluent API | frontend/ |
| Nodes + handlers | commands/<cmd>.ts, base classes in ir/node.ts |
| Dispatch | ir/commandhandler.ts, ir/generate.ts |
| Values | values/ |
| Per-version rendering | ir/lower/ |
| Build + passes | codegen/ |
| Disk write | codegen/write/ |
Diagrams of each stage are in helix/diagrams/ (PlantUML).