public interface Instruction
The instruction that the
Interpreter
runs.-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(Deque<SyntaxNode> stack) Interacts with the specified stack of theSyntaxNode
object to build aSyntaxTree
object.int
apply
(int[] stack, int offset) Interacts with the specified stack of an integer.
-
Method Details
-
accept
Interacts with the specified stack of theSyntaxNode
object to build aSyntaxTree
object.- Parameters:
stack
- The stack of aSyntaxNode
object.
-
apply
int apply(int[] stack, int offset) Interacts with the specified stack of an integer.- Parameters:
stack
- The stack of an integer.offset
- The position of the top of the stack.- Returns:
- The new offset of the top of the stack.
-