Vox Language Specification
Use this section when you need exact Vox syntax or precise semantic rules.
Chapters:
- Source Model
- Lexical Structure
- Types and Declarations
- Expressions
- Statements and Control Flow
- Effects and Execution
This specification describes the current Vox surface language.
Notation
Grammar examples use a lightweight EBNF style:
- quoted text means a literal token;
A?means optional;A*means zero or more;A+means one or more;- parentheses group sub-productions.
Unless a chapter says otherwise, whitespace and comments may appear between tokens.