//!include once #1021761 // Fakery svoid gazelle_fakery_gatherRulesFromSections(TreeMap<S> sections) { gazelle_fakery_clean(); int n = 1; for (S text : ai_splitEntriesWithMultipleDoubleArrows(splitAtEmptyLines(sections.get("rules")))) { gazelle_fakery_addRule("Rule " + n++, text); } for (S ruleID, text : keysStartingWith(sections, "rule")) { if (eqic(ruleID, "rules")) continue; gazelle_fakery_addRule(ruleID, text); } }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021762 |
Snippet name: | gazelle_fakery_gatherRulesFromSections |
Eternal ID of this version: | #1021762/12 |
Text MD5: | bf7ffece2874e397793f4c15328d3fbd |
Author: | stefan |
Category: | javax / gazelle |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-16 21:53:37 |
Source code size: | 465 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 379 / 397 |
Version history: | 11 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1021782 - gazelle_processSquareBracketAnnotations - extract comments from rule text |