예제 #1
0
  void ExprCompiler::visit(AndExpr& expr, int dest)
  {
    compile(expr.left(), dest);

    // Leave a space for the test and jump instruction.
    int jumpToEnd = startJump(expr);

    compile(expr.right(), dest);

    endJump(jumpToEnd, OP_JUMP_IF_FALSE, dest);
  }
예제 #2
0
파일: Resolver.cpp 프로젝트: relrod/magpie
 void Resolver::visit(AndExpr& expr, int dummy)
 {
   resolve(expr.left());
   resolve(expr.right());
 }