Axon transpiles to JavaScript with unambiguous grammar, intent-first declarations, constraint-enforced types, and explicit effect tracking. Designed to be written and reasoned about by language models.
Less boilerplate means more of your codebase fits in a context window.
npm install -g axon-lang
Axon programs use fewer tokens than equivalent TypeScript or Python — meaning AI models can reason about more of your codebase in a single prompt.
Methodology: same task, three languages, token-counted with gpt-tokenizer (cl100k_base). Comments included — they consume context too. Source →
@intent is not a comment — it's a machine-readable description embedded in JS output as JSDoc metadata. A downstream model can query what a function is for without reading its body.where predicates. Guard clauses are injected automatically at function entry — they are never forgotten, never optional.@pure, @total, and @effects are compiler-checked contracts. A pure function that touches console gets a warning. No surprises.@exhaustive makes it an error. Every variant is either handled or the compiler tells you which one isn't.@test "description" { expr } registers inline assertions. Run them with axon --test file.axn. No test framework, no config, no boilerplate.import { fn } from "./module" and export fn split projects across files. axon --bundle resolves imports, topo-sorts modules, and emits one clean JS file. Zero runtime overhead.enum status/priority, numeric separators, multi-line lambdas, and reactive tick simulation.store holds state, async fn advances the simulation, on...change re-renders reactively.let infer. Filter, sort, and cart — all typed.axon --bundle. Procedural map generation.3 milestones stand between Axon and v1.0.
while loops with break and continue — completing Axon's iteration model.