Example #1
0
File: Binop.cs Project: winny-/aoc
 public Binop(Expression left, BinopKind kind, Expression right)
 {
     this.Left  = left;
     this.Right = right;
     this.Kind  = kind;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BinopExpression"/> class.
 /// </summary>
 /// <param name="op">The operator associated with the expression.</param>
 /// <param name="left">The left operand.</param>
 /// <param name="right">The right operand.</param>
 public BinopExpression(BinopKind op, Expression left, Expression right)
 {
     Operator = op;
     Left     = left;
     Right    = right;
 }
Example #3
0
 public BinopToken(BinopKind kind)
 {
     this.Kind = kind;
 }