public interface Instruction
The instruction that the
Interpreter runs.-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(Deque<SyntaxNode> stack) Interacts with the specified stack of theSyntaxNodeobject to build aSyntaxTreeobject.intapply(int[] stack, int offset) Interacts with the specified stack of an integer.
-
Method Details
-
accept
Interacts with the specified stack of theSyntaxNodeobject to build aSyntaxTreeobject.- Parameters:
stack- The stack of aSyntaxNodeobject.
-
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.
-