Iteration

data class Iteration(val interval: Interval, val iterator: VariableReference, val body: List<Instruction>) : ControlStructure

Iteration Instruction. Iterates over every integer in interval with an iterator variable, and executes the instructions in body for each iteration.

Parameters

interval

The Interval to iterate through.

iterator

A VariableReference to the iterator variable.

body

A list of Instructions to execute on each iteration.

Constructors

Link copied to clipboard
constructor(interval: Interval, iterator: VariableReference, body: List<Instruction>)

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?