Esempio n. 1
0
 public void Visit(MinusOperator node)
 {
     VisitBinary(node);
     CheckOperandsAreOfSameType(node);
     CheckOperandsRestrictedToTypes(node, new Number().GetType());
 }
Esempio n. 2
0
        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)
 {
 }
Esempio n. 4
0
 public override void ExitOperatorSubtraction(QLParser.OperatorSubtractionContext context)
 {
     BinaryTreeElementBase op = new MinusOperator(SourceLocation.CreateFor(context));
     AppendToAST(op);
 }