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

12
LINES

< > BotCompany Repo | #1004490 // gStandardRewrites

JavaX fragment (include)

1  
static SS gStandardRewrites_cache;
2  
3  
static synchronized SS gStandardRewrites() {
4  
  if (gStandardRewrites_cache == null) {
5  
    gStandardRewrites_cache = new HashMap;
6  
    pcall {
7  
      for (Rule rule : parseRules(loadSnippet("#1004468")))
8  
        gStandardRewrites_cache.put(first(rule.in), first(rule.out));
9  
    }
10  
  }
11  
  ret gStandardRewrites_cache;
12  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004490
Snippet name: gStandardRewrites
Eternal ID of this version: #1004490/1
Text MD5: d70fa3f9a1e690af257e861cbecfa3ef
Author: stefan
Category: javax / talking robots
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-18 20:24:23
Source code size: 362 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 475 / 483
Referenced in: [show references]