示例#1
0
 public Value Visit(GreaterThanOrEqualsExpr expr, Scope scope)
 {
     return(PerformOperation(expr.Left.Accept(this, scope),
                             expr.Right.Accept(this, scope),
                             (a, b) => a >= b,
                             (a, b) => a >= b,
                             (a, b) => { throw new InvalidOperationException(); },
                             (a, b) => string.CompareOrdinal(a, b) >= 0));
 }
示例#2
0
 public string Visit(GreaterThanOrEqualsExpr expr, Scope scope)
 {
     return(expr.Left.Accept(this, scope) + " >= " + expr.Right.Accept(this, scope));
 }
示例#3
0
 public ValueType Visit(GreaterThanOrEqualsExpr expr, Scope scope)
 {
     return(BinaryOperatorTypeCheck(expr, scope));
 }