Namespace: Albatross.Expression.Infix
Infix OR operation.
Operand Count: 2
Output Type: Boolean
Usage: 3 > 2 or 2 > 1
Precedance: 20
public class Or : InfixExpression, Albatross.Expression.Nodes.IInfixExpression, Albatross.Expression.Nodes.IExpression, Albatross.Expression.Nodes.IToken, Albatross.Expression.Nodes.IHasPrecedence
Inheritance Object → InfixExpression → Or
Implements IInfixExpression, IExpression, IToken, IHasPrecedence
The operator symbol for this infix operation.
public string Operator { get; }
The token representation, which is the same as the Operator.
public string Token { get; }
The precedence level of this operation for proper evaluation order.
public int Precedence { get; }
The left operand of the infix operation.
public IExpression Left { get; set; }
The right operand of the infix operation.
public IExpression Right { get; set; }
Gets the required left operand, throwing an exception if it’s null.
public IExpression RequiredLeft { get; }
Gets the required right operand, throwing an exception if it’s null.
public IExpression RequiredRight { get; }
public Or()
protected object Run(object left, object right)
left
Object
right
Object