svoid dm_importTextIntoRulesModule(S text) { for (S ruleText : ai_splitEntriesWithMultipleDoubleArrows(splitAtEmptyLines(text))) { new LS comments; ruleText = gazelle_processSquareBracketAnnotations(ruleText, comments); S id = matchAny_firstGroup("id: *"); if (id == null) id = aGlobalID; print("Importing rule: " + id); call(dm_call(gazelle_rulesModule(), 'uniqConcept, id), '_setFields, text := ruleText, comments := lines_rtrim(comments)); } }