Experimental documentation — Work in progress
This page has not completed the documentation audit. Current documentation version: experimental.
Compiler and tooling
Current tooling includes:
- the
bin/sagantokenizer and parser inspection driver; - text, DOT, SVG, and interactive HTML AST renderers;
- Make targets for build, tests, examples, cleanup, and version display;
- GCC/LCOV coverage instrumentation with Codecov reporting in GitHub Actions;
- Bash scripts for compiler tests and documentation;
- semantic analysis, type checking, C++ generation, and direct native execution;
- package/module discovery and a self-contained Windows installer;
- a reusable compiler library, recovering document analysis, workspace overlays, and a compiler-owned semantic index used by the language server;
- structured, cancellable check/build/run and document/project test operations, generated-code source maps, and debugger metadata;
- a dedicated Sagan language server for editor clients;
- a VS Code extension with tokenizer-aligned highlighting, LSP-backed language features, tasks, and Test Explorer;
- a compiler-owned Sagan program test model with document/project discovery and selected execution through Test Explorer;
- offline installed-package and lockfile resolution, plus an experimental debug adapter; and
- MkDocs and Mike for experimental and released versioned documentation.
There is no package registry or REPL yet. Recovered-source formatting changes only regions the compiler can prove safe; it refuses uncertain edits. The debug adapter is a development probe, not a supported extension feature: reliable values, exception mapping, and packaged GDB dependencies are still missing. Complete package completion and safe auto-import are also gated. The historical readiness audit, contracts, implementation roadmap, formatting/edit safety guide, and extension readiness checklist track what remains. The VS Code extension roadmap separately tracks client validation, distribution, and integrations blocked on compiler services.