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.
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.
| Property | Contract |
|---|---|
input | Initial value; read through FlowName.input. flow.input selects the currently active flow. |
version | User-defined flow metadata; not the runtime release version. |
debug | Controls runtime logging; does not suppress program print calls. |
delay | Finite non-negative seconds after successful selected-flow execution. |
timeout | Total cooperative budget in seconds; zero inherits an outer budget. |
database | Alias-to-configuration registry, validated without opening connections. |
Data Types
| Type | Example | typeof() |
|---|---|---|
string | "hello" | "string" |
number | 42 | "number" |
bool | true | "bool" |
null | null | "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.
Operators
| Operators | Use |
|---|---|
+ - * / % ** | Arithmetic and exponentiation. Division by zero raises a controlled error. |
== != < > <= >= | Comparison. |
&& || / and or not | Logical 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.
Control Flow
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.
Dictionary and list assignment
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.