TapeStack

interface TapeStack(source)

Stack for managing nested execution tapes

Inheritors

Properties

Link copied to clipboard
abstract val currentTape: ExecutionTape?

The currently active tape (top of stack)

Link copied to clipboard
abstract val tapes: List<ExecutionTape>

All tapes in the stack

Functions

Link copied to clipboard
abstract fun clear()

Clear all tapes from the stack

Link copied to clipboard
abstract fun isRecording(): Boolean

Whether any tape in the stack is recording

Link copied to clipboard
abstract fun popTape(): ExecutionTape?

Pop the top tape from the stack

Link copied to clipboard
abstract fun pushTape(tape: ExecutionTape)

Push a new tape onto the stack