final public int direction() throws ParseException {
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case TO:
      jj_consume_token(TO);
                  {if (true) return 1;}
      break;
    case DOWNTO:
      jj_consume_token(DOWNTO);
                                           {if (true) return 2;}
      break;
    default:
      jj_la1[112] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
    throw new Error("Missing return statement in function");
  }