sbool ctxFindRules_debug; static L ctxFindRules(S botID) { new L out; File f = loadLibrary(botID); L names = endingWithIC(".ctx", listFilesInZip(f)); int good = 0, bad = 0; for (S name : names) { L lines = lines(loadTextFileFromZip(f, name)); if (ctxFindRules_debug) print(name + ": " + n(lines, "lines")); for i, S s over lines: { if (javaTokC(s).contains("RULE")) out.add(nuWithValues(CtxRule1, file := name, allLines := lines, ruleIndex := i)); } } ret out; }