krwa
Toggle table of contents
0.3.0-rc.9
common
Target filter
common
Switch theme
Search in API
Skip to content
krwa
wasm
/
uk.shusek.krwa.wasm
/
ControlTree
Control
Tree
class
ControlTree
Provides a control structure to label branches in a list of instructions.
Members
Constructors
Control
Tree
Link copied to clipboard
constructor
(
)
Functions
add
Callback
Link copied to clipboard
fun
addCallback
(
callback
:
(
Int
)
->
Unit
)
add
Nested
Link copied to clipboard
fun
addNested
(
nested
:
ControlTree
)
instruction
Link copied to clipboard
fun
instruction
(
)
:
AnnotatedInstruction.Builder
instruction
Number
Link copied to clipboard
fun
instructionNumber
(
)
:
Int
parent
Link copied to clipboard
fun
parent
(
)
:
ControlTree
?
set
Final
Instruction
Number
Link copied to clipboard
fun
setFinalInstructionNumber
(
finalInstructionNumberInput
:
Int
,
end
:
AnnotatedInstruction.Builder
)
spawn
Link copied to clipboard
fun
spawn
(
initialInstructionNumber
:
Int
,
instruction
:
AnnotatedInstruction.Builder
)
:
ControlTree