QScript

Runs generated byte code generated from the compiler. Uses NaVM, so any ordinary NaVM bytecode can also be run

Constructors

this
this(Function[] externalFunctions, ExternFunction[] externalFunctionPtr)

constructor

Destructor

~this
~this()
Undocumented in source.

Members

Functions

addFunction
uinteger addFunction(Function externalFunc, ExternFunction externalFuncPtr)

adds an external function.

addFunction
void addFunction(Function[] externalFunc, ExternFunction[] externalFuncPtr)
execute
NaData execute(uinteger functionID, NaData[] args)
NaData execute(string functionName, NaData[] args)

executes a function

functionID
integer functionID(string functionName)
initialize
void initialize()

Initializes the VM. must be called before executing anything in the script. And should only be called after all external functions have been added

loadByteCode
bool loadByteCode(string[] byteCode)

loads pre-compiled NaVM byte code

loadScript
CompileError[] loadScript(string[] script, string[] byteCode)
CompileError[] loadScript(string[] script)

loads a script, and compiles it

Meta