예제 #1
0
파일: LlvmVisitor.cs 프로젝트: ionlang/ir
        public Construct VisitNumericExpr(NumericExpr node)
        {
            // Create the value.
            LlvmValue reference = Resolver.Literal(node.TokenType, node.Value, node.Type);

            // Append the value onto the stack.
            this.valueStack.Push(reference);

            // Return the node.
            return(node);
        }
예제 #2
0
 private NumericExpr(NumericExpr other) : base(other)
 {
     _op = other._op;
     _opnd1 = Clone(other._opnd1);
     _opnd2 = Clone(other._opnd2);
 }
 private NumericExpr(NumericExpr other) : base(other)
 {
     this.op = other.op;
     this.opnd1 = Query.Clone(other.opnd1);
     this.opnd2 = Query.Clone(other.opnd2);
 }