public void Visit(PlusOperator node) { VisitBinary(node); CheckOperandsAreOfSameType(node); CheckOperandsRestrictedToTypes(node, new Number().GetType(), new Text().GetType()); }
public void Visit(PlusOperator 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(PlusOperator node) { }
public override void ExitOperatorAddition(QLParser.OperatorAdditionContext context) { BinaryTreeElementBase op = new PlusOperator(SourceLocation.CreateFor(context)); AppendToAST(op); }