public void visitMultiplication(MultiplicationOperationNode node) { readValues(node); int value = popInt() * popInt(); this.intStack.Push(value); }
public void visitMultiplication(MultiplicationOperationNode node) { accessChildren(node); MiniPLTokenType left = this.typeStack.Pop(); MiniPLTokenType right = this.typeStack.Pop(); if (left != right) { throw new SemanticException("Wrong type. Expected an integer."); } this.typeStack.Push(MiniPLTokenType.TYPE_IDENTIFIER_INTEGER); }
public void visitMultiplication(MultiplicationOperationNode node) { }