Enum mindjuice::Instruction [] [src]

pub enum Instruction {
    MoveRight,
    MoveLeft,
    Increment,
    Decrement,
    Output,
    Input,
    JumpToLeft(usize),
    JumpToRight(usize),
}

Variants

Increment the memory pointer by one

Decrement the memory pointer by one

Increment the memory value at the memory pointer by one

Decrement the memory value at the memory pointer by one

Output the value of the current memory pointer as a char

Set the memory value at the current memory pointer to a char read from stdin.

This is the left side of a loop. If the memory value at the memory pointer is zero, set the next instruction to the contained value.

This is the right side of a loop. If the memory value at the memory pointer is non-zero, set the next instruction to the contained value.

Trait Implementations

impl Debug for Instruction
[src]

[src]

Formats the value using the given formatter.