logo
class

compiler::BinaryExpr

sys::Obj
  compiler::Node
    compiler::Expr
      compiler::BinaryExpr

BinaryExpr is used for binary expressions with a left hand side and a right hand side including assignment. Note that many common binary operations are actually modeled as ShortcutExpr to enable method based operator overloading.

Slots

isStmt

virtual Bool isStmt()

lhs

Expr lhs

make

new make(Expr lhs, Token opToken, Expr rhs)

makeAssign

new makeAssign(Expr lhs, Expr rhs, Bool leave := def)

opToken

Token opToken

rhs

Expr rhs

serialize

virtual Str serialize()

tempVar

MethodVar tempVar

toStr

virtual Str toStr()

walkChildren

virtual Void walkChildren(Visitor v)