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

22
LINES

< > BotCompany Repo | #1008177 // alwaysRules_standardHandlers

JavaX fragment (include)

1  
static void alwaysRules_standardHandlers() {
2  
  // Remove (X)
3  
  addAlwaysRuleHandler("chjllkocfhtwcgoj", voidfunc(Lisp l) {
4  
    //print("Remove " + l.get(0) + ", ts=" + thoughtSpace());
5  
    unemit(l);
6  
    unemit(l.get(0));
7  
  });
8  
  
9  
  // Always fully apply X
10  
  addAlwaysRuleHandler(ll("anmgnlmdnkjivliq", "anmjmlkwmjbzbiss"), voidfunc(Lisp l) {
11  
    l = l.get(0);
12  
    applyRule_all(l, applyAlwaysRules_ruleID());
13  
  });
14  
  
15  
  // Fire once: X - not try to apply once, but actually fire once
16  
  addAlwaysRuleHandler("wrqnygxvjvtpyiwc", voidfunc(Lisp l) {
17  
    S ruleID = applyAlwaysRules_ruleID();
18  
    //print("Trying to fire " + l.get(0));
19  
    if (applyRule_first(l.get(0), ruleID))
20  
      unemit(ruleID);
21  
  });
22  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1008177
Snippet name: alwaysRules_standardHandlers
Eternal ID of this version: #1008177/14
Text MD5: f9704786a776712a67fb48a78f41aa53
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-07 00:13:53
Source code size: 725 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 441 / 463
Version history: 13 change(s)
Referenced in: [show references]