sbool gazelle_addMatch(RuleEngine2_MatchedRule mr, SS map, LS tokC, LS tokI, O... _) { bool debug = boolPar debug(_); /*if (containsAny(map, mr.rule.dontChangeWords)) { if (debug) print("Found dontChangeWord: " + map + " / " + mr.rule.dontChangeWords); false; }*/ for (O massager : unnull(mr.rule.mapMassagers)) { bool wasNull = map == null; map = (SS) callF(massager, map, tokC, tokI, mr); if (debug && map == null && !wasNull) print("mapMassager returned null: " + massager); } if (map == null) false; if (!addMapToMapWithoutOverwritingIC(mr.map, map)) { if (debug) print("Adding map failed"); false; } mr.flush(); true; }