clojush.instructions.input-output

handle-input-instruction

(handle-input-instruction instr state)

Allows Push to handle inN instructions, e.g. in2, using things from the input stack. We can tell whether a particular inN instruction is valid if N-1 values are on the input stack. Recognizes vectors, simple literals and quoted code.

printer

(printer type)

Returns a function that takes a state and prints the top item of the appropriate stack of the state.