public void Visit(DivisionOperator node)
 {
     VisitBinary(node);
     CheckOperandsAreOfSameType(node);
 }
Example #2
0
        public void Visit(DivisionOperator 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(DivisionOperator node)
 {
 }
Example #4
0
 public override void ExitOperatorDivision(QLParser.OperatorDivisionContext context)
 {
     BinaryTreeElementBase op = new DivisionOperator(SourceLocation.CreateFor(context));
     AppendToAST(op);
 }