array-forth-0.2.0.3: A simple interpreter for arrayForth, the language used on GreenArrays chips.
Language.ArrayForth.Stack
Synopsis
empty :: StackSource
A stack containing only 0s.
push :: Stack -> F18Word -> StackSource
Pushes the given element on top of the stack, discarding the last element.
pop :: Stack -> (Stack, F18Word)Source
Pops the top of the stack, returning the value and the new stack.
fill :: Stack -> [F18Word] -> StackSource
Push the given elements onto the stack one-by-one.
data Stack Source
Instances