예제 #1
0
 public void visit(BinaryExpr n, Object arg) {
   n.getLeft().accept(this, arg);
   switch (n.getOperator()) {
     case or:
       break;
     case and:
       break;
     case binOr:
       break;
     case binAnd:
       break;
     case xor:
       break;
     case equals:
       break;
     case notEquals:
       break;
     case less:
       break;
     case greater:
       break;
     case lessEquals:
       break;
     case greaterEquals:
       break;
     case lShift:
       break;
     case rSignedShift:
       break;
     case rUnsignedShift:
       break;
     case plus:
       break;
     case minus:
       break;
     case times:
       break;
     case divide:
       break;
     case remainder:
       break;
   }
   n.getRight().accept(this, arg);
 }
 public void visit(BinaryExpr n, A arg) {
   n.getLeft().accept(this, arg);
   n.getRight().accept(this, arg);
 }