Entry Point

Use a global main block to orchestrate execution. Definitions such as functions, agents and flows belong outside it; executable statements go in main or function bodies. Imported main blocks do not run.

axon

Flow Configuration

A named flow declares context and configuration. It is not a callable function. Prefer explicit named properties when more than one flow is declared.

axon
PropertyContract
inputInitial value; read through FlowName.input. flow.input selects the currently active flow.
versionUser-defined flow metadata; not the runtime release version.
debugControls runtime logging; does not suppress program print calls.
delayFinite non-negative seconds after successful selected-flow execution.
timeoutTotal cooperative budget in seconds; zero inherits an outer budget.
databaseAlias-to-configuration registry, validated without opening connections.
database is contextual inside a flow: one registry, any number of aliases, explicit driver/database fields. In main and functions, database remains an ordinary variable name. Telemetry/output declarations do not establish a complete metrics/export API.

Data Types

TypeExampletypeof()
string"hello""string"
number42"number"
booltrue"bool"
nullnull"null"
list[1, 2]"list"
dict{"name":"Axon"}"dict"

Numbers are IEEE-754 doubles. Functions currently have an internal dictionary representation, so typeof(function) returns dict; its internal fields are not a public API.

axon

Operators

axon
OperatorsUse
+ - * / % **Arithmetic and exponentiation. Division by zero raises a controlled error.
== != < > <= >=Comparison.
&& || / and or notLogical operations.
>>Agent pipeline.
->Task invocation or native module calls.
.Property access and native value methods.

F-Strings

Interpolate expressions inside braces with f-prefixed single- or double-quoted strings.

axon

Control Flow

axon

Variables and Collections

Assignment creates or updates variables under the lexical environment rules. Undefined reads are runtime errors and may terminate execution; null is a valid value. The name _ is an ordinary valid identifier, not automatic disposal. Parallel branches use separate snapshots.

axon

Dictionary and list assignment

axon
Nested dictionary assignment can create intermediate dictionaries. Use a dictionary/list root and deliberate indexes; this does not imply a full schema or automatic conversion of arbitrary objects.

Functions and Closures

Named functions, anonymous func expressions, arrow functions, recursion and closures are implemented. User-defined functions require exactly the declared positional argument count; an arity error occurs before argument expressions or the body run.

axon
Defaults, keyword/variadic parameters, selective imports and optional type annotations remain planned. Built-in, module and agent/task argument contracts are documented separately.