8. Modules & System Integration
Aergia code can load external resources either from separate .aer files or tap natively directly into Python’s vast package index.
+> exprInternal Import: Parses and executes an external.aersource file path.*> moduleOpen Python Import: Imports a native Python module directly into the global execution namespace.*< module prefixClosed Python Import: Imports a native Python module mapping its internal namespace elements cleanly behind a safety string prefix:prefix_functionName.; exprEval Execution: Evaluates raw string sequences directly as Aergia source tokens at runtime.~> exprExit Engine: Halts the interpreter process immediately with the status code provided byexpr.
Examples
# Import local helper library
+> "utils.aer"
# Native Open Python Import
*> math
= root_val @sqrt:16: # Access via global env
# Closed Python Import
*< random rand
# Available via custom namespace binding
= roll @rand_randint:1 6:
# Evaluate code directly from a string sequence
; "= dynamic 100"
# Stop execution and exit immediately with status 0
~> 0