code: void printStates() {
             int     c;    // input "character"
             int     n;    // state number
  
             System.out.print("state |           i n p u t     s y m b o l s \n");
             System.out.print("      | Acc  LA    Tag");
             for (c=0; c<fRB.fSetBuilder.getNumCharCategories(); c++) {
                 RBBINode.printInt(c, 3);
             }
             System.out.print("\n");
             System.out.print("      |---------------");
             for (c=0; c<fRB.fSetBuilder.getNumCharCategories(); c++) {
                 System.out.print("---");
             }
             System.out.print("\n");
  
             for (n=0; n<fDStates.size(); n++) {
                 RBBIStateDescriptor sd = fDStates.get(n);
                 RBBINode.printInt(n, 5);
                 System.out.print(" | ");
  
                 RBBINode.printInt(sd.fAccepting, 3);
                 RBBINode.printInt(sd.fLookAhead, 4);
                 RBBINode.printInt(sd.fTagsIdx, 6);
                 System.out.print(" ");
                 for (c=0; c<fRB.fSetBuilder.getNumCharCategories(); c++) {
                     RBBINode.printInt(sd.fDtran[c], 3);
                 }
                 System.out.print("\n");
             }
             System.out.print("\n\n");
         }
docs: -----------------------------------------------------------------------------