/// <summary>
 /// Reading `<` or `<=` accordingly
 /// </summary>
 void readCmpOp(Token.Pos tp, Token.BinOpType opEq, Token.BinOpType op)
 {
     if (pos < len && code[pos] == '=')
     {
         pos++;
         add(new Token.BinOp(tp, opEq));
     }
     else
     {
         add(new Token.BinOp(tp, op));
     }
 }
Beispiel #2
0
 public SetOp(Token.Pos tp, Token.BinOpType type, Node left, Node right) : base(tp)
 {
     this.type  = type;
     this.left  = left;
     this.right = right;
 }