Branch

data class Branch(val guard: Expression, val body: List<Instruction>, val alternative: List<Instruction> = listOf()) : ControlStructure

Conditional branch Instruction. Executes the Instructions in body if the guard evaluates to True; otherwise, executes the instructions in alternative.

Parameters

guard
body
alternative

Constructors

Link copied to clipboard
constructor(guard: Expression, body: List<Instruction>, alternative: List<Instruction> = listOf())

Functions

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var parent: Instruction?