public void Visit(MinusOperator node) { VisitBinary(node); CheckOperandsAreOfSameType(node); CheckOperandsRestrictedToTypes(node, new Number().GetType()); }
public void Visit(MinusOperator node) { VisitBinary(node); ITerminalWrapper leftWrapper = ReferenceTables.GetValue(node.Left); ITerminalWrapper rightWrapper = ReferenceTables.GetValue(node.Right); ReferenceTables.SetValue(node, ((dynamic)leftWrapper) - ((dynamic)rightWrapper)); }
public void Visit(MinusOperator node) { }
public override void ExitOperatorSubtraction(QLParser.OperatorSubtractionContext context) { BinaryTreeElementBase op = new MinusOperator(SourceLocation.CreateFor(context)); AppendToAST(op); }