Skip to content

Module & Export System

These instructions control the module and export system within the virtual machine. They provide the mechanism for modularizing code, enabling the import of external libraries and the public exposure of internal components.

OpcodeArgumentsOperands (stack)Description
importmodule_name, alias_idxtarget, lengthImporting external libraries/modules into a specific variable index
exportname-Mark a function or variable to be accessible from outside the VM

WARNING

Nightly Opcode: The export and import instructions are still experimental. The API may change without notice in the @next or @nightly version.

Released under the Apache-2.0 License.