Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

21
LINES

< > TinyBrain | #1008867 - class WoodyBot

JavaX fragment (include)

sclass WoodyBot {
  SS files = new TreeMap;
  new TreeMap<S, WoodyRule> rules;
  SS globals = new TreeMap;
  SS regexpMacros = new TreeMap;
  new HashMap<S, Pattern> compiledPatterns;
  
  Collection<S> fileNames() {
    ret keys(files);
  }
  
  S getFile(S fileName) {
    ret lookupPossiblyIgnoringCase(files, fileName);
  }
  
  WoodyRule getRule(S ruleName) {
    ret ruleName == null ? null : lookupPossiblyIgnoringCase(rules, ruleName);
  }
  
  void cleanMeUp() { cleanUp(files); }
}

download  show line numbers  debug dex   

Travelled to 3 computer(s): cfunsshuasjs, onxytkatvevr, tvejysmllsmz

No comments. add comment

Snippet ID: #1008867
Snippet name: class WoodyBot
Eternal ID of this version: #1008867/12
Text MD5: 9cd722ed29b45ef8f104112537c86d64
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-06-19 17:46:58
Source code size: 511 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 32 / 284
Version history: 11 change(s)
Referenced in: [show]