private void writerToFile(String str, int line, int state, int type_token, int index) {
        String nameOfTable;
        switch (type_token) {
            case 0: // id
                nameOfTable = "id";
                break;
            case 2: // int
                nameOfTable = "int";
                break;
            case 3: // if
                nameOfTable = "if";
                break;
            case 1: // keyword
                nameOfTable = "keyword";
                break;
            case 4: // operator
                nameOfTable = "operator";
                break;
            case 5: // breckets
                nameOfTable = "breckets";
                break;
            case 6: // splits
                nameOfTable = "splits";
                break;
            default:
                nameOfTable = "null";
                break;
        }
        IOclass.println("\"" + str + "\" \tLine: " + line + " \tCode: " + state + " \tTable: '" + nameOfTable + "' [" + index + "]");
    }