The language, section by section.
This is the Voxlang specification as it stands in the compiler's own repository. The site reads LANGUAGE.md at build time and splits it into one page per section, so there is no second copy to fall out of date.
Search is also a JSON endpoint: /docs/search?q=<words> returns ranked results as JSON, no page load.
Generated from LANGUAGE.md at bf2cba0, 2026-08-22.
Contents
- Basics
- Types
- Variables
- Names and strings
- Functions
- Things
- Defining a thing
- Declarations and field access
- Nesting
- Value copy semantics
- Printing
- Equality
- The manifest
- The three call forms
- One identifier space
- Definitions are top-level only
- Cross-file definitions
- .lib export of a thing is not yet supported
- Sentence consumption and multi-line definitions
- Definition diagnostics
- Type predicates and the runtime tag
- Expressions
- Control Flow
- Lists and Collections
- List Literals
- Mixed-Type Lists
- Nested Lists
- Maps
- Type Predicates
- Dynamic Values (value)
- Nothing (the absent value)
- Printing a List
- List Properties
- List Element Access
- Appending to Lists
- Loop Expansion with Collections
- Conditional Branching with but if (Lists and Collections)
- Inline Value Substitution with treating
- Input/Output
- File I/O
- Directories, Mounting, and Process Control
- Time and Timers
- Command-Line Arguments
- Environment Variables
- Operators
- Keywords
- Examples
- Libraries and Imports
- Compiler Usage
- Grammar Summary
The whole reference, on one page.
How the URLs work
A URL is the heading, lowercased, with punctuation dropped and spaces turned into hyphens.
Each "##" section of the spec is a page under /docs/, and every heading inside it is a fragment on that page, so "File I/O" is /docs/file-io/ and "Reading a whole file" inside it is /docs/file-io/#reading-a-whole-file.
The same thing, as JSON
Written at build time from the same parse the pages come from. The search box above reads them, and so can anything you write.
- /docs/search.json
- one entry per heading: title, section, first sentence, keywords
- /docs/index.json
- every section and every heading in it, with URLs
- /docs/anchors.json
- the slug map: every address this reference can be linked at