public class FullBrainfuckInstructionSet extends LoopHandlingBrainfuckInstructionSet
| Modifier and Type | Field and Description |
|---|---|
protected DataInput |
input |
protected DataOutput |
output |
instructionPointerStack, loopModeStack, tape| Constructor and Description |
|---|
FullBrainfuckInstructionSet(Deque<InstructionPointer> instructionPointerStack,
Deque<LoopMode> loopModeStack,
Tape<?> tape,
DataInput input,
DataOutput output) |
| Modifier and Type | Method and Description |
|---|---|
InstructionPointer |
decrement(InstructionPointer instructionPointer) |
InstructionPointer |
increment(InstructionPointer instructionPointer) |
InstructionPointer |
input(InstructionPointer instructionPointer) |
InstructionPointer |
moveBackward(InstructionPointer instructionPointer) |
InstructionPointer |
moveForward(InstructionPointer instructionPointer) |
InstructionPointer |
output(InstructionPointer instructionPointer) |
endOfLoop, startOfLoopprotected final DataInput input
protected final DataOutput output
public FullBrainfuckInstructionSet(Deque<InstructionPointer> instructionPointerStack, Deque<LoopMode> loopModeStack, Tape<?> tape, DataInput input, DataOutput output)
public InstructionPointer moveForward(InstructionPointer instructionPointer) throws InterpreterException
moveForward in interface BrainfuckInstructionSetmoveForward in class LoopHandlingBrainfuckInstructionSetInterpreterExceptionpublic InstructionPointer moveBackward(InstructionPointer instructionPointer) throws InterpreterException
moveBackward in interface BrainfuckInstructionSetmoveBackward in class LoopHandlingBrainfuckInstructionSetInterpreterExceptionpublic InstructionPointer increment(InstructionPointer instructionPointer) throws InterpreterException
increment in interface BrainfuckInstructionSetincrement in class LoopHandlingBrainfuckInstructionSetInterpreterExceptionpublic InstructionPointer decrement(InstructionPointer instructionPointer) throws InterpreterException
decrement in interface BrainfuckInstructionSetdecrement in class LoopHandlingBrainfuckInstructionSetInterpreterExceptionpublic InstructionPointer output(InstructionPointer instructionPointer) throws InterpreterException
output in interface BrainfuckInstructionSetoutput in class LoopHandlingBrainfuckInstructionSetInterpreterExceptionpublic InstructionPointer input(InstructionPointer instructionPointer) throws InterpreterException
input in interface BrainfuckInstructionSetinput in class LoopHandlingBrainfuckInstructionSetInterpreterExceptionCopyright © 2018. All rights reserved.