Ejemplo n.º 1
0
  void ExprCompiler::visit(OrExpr& 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_TRUE, dest);
  }
Ejemplo n.º 2
0
 void Resolver::visit(OrExpr& expr, int dummy)
 {
   resolve(expr.left());
   resolve(expr.right());
 }