TapeStackImpl

Minimal production TapeStack implementation supporting nesting.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val currentTape: ExecutionTape?

The currently active tape (top of stack)

Link copied to clipboard
open override val tapes: List<ExecutionTape>

All tapes in the stack

Functions

Link copied to clipboard
open override fun clear()

Clear all tapes from the stack

Link copied to clipboard
open override fun isRecording(): Boolean

Whether any tape in the stack is recording

Link copied to clipboard
open override fun popTape(): ExecutionTape?

Pop the top tape from the stack

Link copied to clipboard
open override fun pushTape(tape: ExecutionTape)

Push a new tape onto the stack