示例#1
0
  void ExprCompiler::visit(AssignExpr& expr, int dest)
  {
    // Compile the value and also make it the result of the expression.
    compile(expr.value(), dest);

    // Now assign it to the left-hand side.
    expr.lvalue()->accept(*this, dest);
  }
示例#2
0
 void Resolver::visit(AssignExpr& expr, int dummy)
 {
   resolve(expr.value());
   expr.lvalue()->accept(*this, dummy);
 }