256257258259260261262263264265
expr = new OpMultiply(toPos(t),expr,rhExpr); } else if (t.kind==TokenKind.DIV) { expr = new OpDivide(toPos(t),expr,rhExpr); } else { Assert.isTrue(t.kind==TokenKind.MOD); expr = new OpModulus(toPos(t),expr,rhExpr); } } return expr; }
242243244245246247248249250251
280281282283284285286287288289
else if (t.kind == TokenKind.DIV) { expr = new OpDivide(toPos(t), expr, rhExpr); } else { Assert.isTrue(t.kind == TokenKind.MOD); expr = new OpModulus(toPos(t), expr, rhExpr); } } return expr; }