Axon

1 program Added 2026-02-27T12:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: —
Provenance: commit 8c8f2a4c32 · authored 2026-02-27T21:09:05+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Acton (0.30)Lexon (0.30)Action! (0.21)Adventuron (0.20)Axum (0.20)

LLM-contributed programs

Temperature Conversion

Provenance: commit 8c8f2a4c32 · authored 2026-02-27T21:09:05+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.axon · added: 2026-02-27T12:00:00Z
// Temperature conversion utilities in Axon
// Axon is the functional scripting language of Project Haystack

// Conversion functions
celsius:    (f) => (f - 32) * 5 / 9
fahrenheit: (c) => c * 9 / 5 + 32
kelvin:     (c) => c + 273.15

// Summarise one Fahrenheit temperature as a dict
convertTemp: (f) => do
  c: celsius(f)
  {fahrenheit: f, celsius: c, kelvin: kelvin(c)}
end

// Run on a selection of reference temperatures
[32, 98.6, 212, -40].each |f| do
  r: convertTemp(f)
  echo("F=" + f + "  C=" + r->celsius + "  K=" + r->kelvin)
end

Contribute — propose a file extension

Tell us where to find evidence about Axon (mapped to pl/axon). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Axon/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Axo axt-format →