State
Properties
The breakpoints of the state. Only used if debugMode is true.
The current working directory of the state.
The FileSystem used by the state.
The global variables of the state.
The offset of the local variables of the current function in the stack.
The recursion limit of the state.
The stack of the state.
The standard error stream of the state.
The standard input stream of the state.
The standard output stream of the state.
Functions
Adds a NativeLibrary to the state.
Loads all the core globals into the state, like print
, io
, etc.
Loads the standard library into the state.
Creates a new MetisRuntimeException and pushes it to the stack.
Removes a NativeLibrary from the state.
Loads the given CodeSource and runs it.
Runs the state till it is finished.
Steps the state.
Wraps the top values values of the stack into a Value.List.
Wraps the top values values of the stack into a Value.Table.