public class LoopHandlingBrainfuckInstructionSet extends Object implements BrainfuckInstructionSet
| Modifier and Type | Field and Description |
|---|---|
protected Deque<InstructionPointer> |
instructionPointerStack |
protected Deque<LoopMode> |
loopModeStack |
protected Tape<?> |
tape |
| Constructor and Description |
|---|
LoopHandlingBrainfuckInstructionSet(Deque<InstructionPointer> instructionPointerStack,
Deque<LoopMode> loopModeStack,
Tape<?> tape) |
| Modifier and Type | Method and Description |
|---|---|
InstructionPointer |
decrement(InstructionPointer instructionPointer) |
InstructionPointer |
endOfLoop(InstructionPointer instructionPointer) |
InstructionPointer |
increment(InstructionPointer instructionPointer) |
InstructionPointer |
input(InstructionPointer instructionPointer) |
InstructionPointer |
moveBackward(InstructionPointer instructionPointer) |
InstructionPointer |
moveForward(InstructionPointer instructionPointer) |
InstructionPointer |
output(InstructionPointer instructionPointer) |
InstructionPointer |
startOfLoop(InstructionPointer instructionPointer) |
protected final Deque<InstructionPointer> instructionPointerStack
protected final Tape<?> tape
public LoopHandlingBrainfuckInstructionSet(Deque<InstructionPointer> instructionPointerStack, Deque<LoopMode> loopModeStack, Tape<?> tape)
public InstructionPointer startOfLoop(InstructionPointer instructionPointer) throws InterpreterException
startOfLoop in interface BrainfuckInstructionSetInterpreterExceptionpublic InstructionPointer endOfLoop(InstructionPointer instructionPointer) throws InterpreterException
endOfLoop in interface BrainfuckInstructionSetInterpreterExceptionpublic InstructionPointer moveForward(InstructionPointer instructionPointer) throws InterpreterException
moveForward in interface BrainfuckInstructionSetInterpreterExceptionpublic InstructionPointer moveBackward(InstructionPointer instructionPointer) throws InterpreterException
moveBackward in interface BrainfuckInstructionSetInterpreterExceptionpublic InstructionPointer increment(InstructionPointer instructionPointer) throws InterpreterException
increment in interface BrainfuckInstructionSetInterpreterExceptionpublic InstructionPointer decrement(InstructionPointer instructionPointer) throws InterpreterException
decrement in interface BrainfuckInstructionSetInterpreterExceptionpublic InstructionPointer output(InstructionPointer instructionPointer) throws InterpreterException
output in interface BrainfuckInstructionSetInterpreterExceptionpublic InstructionPointer input(InstructionPointer instructionPointer) throws InterpreterException
input in interface BrainfuckInstructionSetInterpreterExceptionCopyright © 2018. All rights reserved.