A Neko Module represent a execution unit for the Neko Virtual Machine.
Each compiled .n
bytecode file is a module once loaded by the NekoVM.
Static methods
staticread(i:Input, l:Loader):Module
Reads a module from an Input by using the given Loader. The module is initialized but has not yet been executed.
Constructor
Variables
Methods
execute():Dynamic
Execute a module and returns its result (the latest evaluated expression). A module can be executed several times but its globals are only initialized once the first time the Module is loaded.
getExports():Map<String, Dynamic>
Each Module has an export table which can be useful to transfert values between modules.