Import System

Import quoted .axon files. Paths resolve relative to the importing file, not the terminal working directory. Save the following files together.

math.axon

axon

main.axon

axon
  • Canonical paths prevent duplicate loading. Repeated/circular imports are skipped with a warning, not solved as a complete cyclic dependency graph.
  • Names beginning with _ remain private to the imported environment.
  • Imported main blocks are not executed. Functions and other supported declarations become available through the import environment.
  • Missing imports and imported lexer/parser errors fail execution. axon check validates only the entry file; run the multi-file example to validate loading.
  • Selective imports, package resolution and a registry remain planned.

Named Flow Configuration

Multiple declarations can expose named properties. Prefer FlowName.input and FlowName.database over relying on implicit active-flow selection.

axon
Flow configuration is available; full agent ownership by flow, explicit flow invocation/chaining and complete context isolation remain planned. There is no supported automatic Flow->run contract.