0.2.1
This class represents a Jacquard bytecode runtime
Load a file referenced by 'handle'
(FileIO.handle)
Unload the file of specified type. Note: will reset the runtime state.
(FileIO.Types)
Run the main state bytecode. Be sure to act upon messages received. If a function call message that requires a return value is received, you won't be able to run again until the return value has been given to the runtime. (not currently implemented)
(any)
run only one instruction at a time
Message
:
a message that was generated by the runtime
Change the current instruction pointer to another one as specified.
(InstructionPointer)
Reset the runtime to a base state
Get the current instruction pointer
InstructionPointer
:
Returns if a sourceMap file has been loaded
boolean
:
loaded
Gets the current variable state
These are all in the "Messages" export
An engine command to execute.
We have reached the end of the file.
We have halted due to reaching a halt execution command
We have moved to a new node
(any)
There are selectable options
These are in the "Messages.Text" export
Dialogue to display
A line spoken (optionally) by a character
These are in the "Messages.Variable" export
The base class for variable messages (not exported)
(any)
(any)
(any)
A variable is being saved
Extends base
(any)
(any)
(any)
A variable is being loaded
Extends base
(any)
(any)
(any)
FileIO operations
Open some file data (currently the browser File API is supported) for later use
(any)
the file data to use as input
Promise
:
a promise that either returns the file stream {FileIO.handle} or an error
A handle to file data.
Get type of a file stream
(FileIO.handle)
FileIO.Types
:
file type
File Stream types
A Logic file
A Dialog file
A SourceMap file