comparison ast/Exp.d @ 123:6a5f745d351c

Parsing <<, >> and >>>.
author Anders Johnsen <skabet@gmail.com>
date Sun, 25 May 2008 21:07:48 +0200
parents c0b531362ca6
children d604152de1eb
comparison
equal deleted inserted replaced
121:95dfe2f48dcf 123:6a5f745d351c
177 Lt, Le, 177 Lt, Le,
178 Gt, Ge, 178 Gt, Ge,
179 179
180 Add, Sub, 180 Add, Sub,
181 Mul, Div, Mod, 181 Mul, Div, Mod,
182 } 182
183 183 LeftShift, RightShift, UnsignedRightShift,
184 char[][] getOp = ["=","==","!=","<","<=",">",">=","+","-","*","/","%"]; 184 }
185
186 char[][] getOp = ["=","==","!=","<","<=",">",">=","+","-","*","/","%","<<",">>",">>>"];
185 187
186 this(SLoc op_loc, Operator op, Exp left, Exp right) 188 this(SLoc op_loc, Operator op, Exp left, Exp right)
187 { 189 {
188 super(ExpType.Binary, op_loc); 190 super(ExpType.Binary, op_loc);
189 this.op = op; 191 this.op = op;