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

9
LINES

< > BotCompany Repo | #1027157 // philosophyBot1_enableAddSimplifier (v1)

JavaX fragment (include)

1  
svoid philosophyBot1_enableAddSimplifier(PhilosophyBot1 bot) {
2  
  bot.anyCodeOnFacts.newA(fact -> {
3  
    S rule = $x(bot.matchString("add simplifier $x", fact));
4  
    if (rule == null) ret;
5  
    PairS p = tok_splitAtDoubleArrow_pair(rule);
6  
    if (p == null) ret;
7  
    philosophyBot1_addSimplificationRule(bot, p.a, p.b);
8  
  });
9  
}

Author comment

Began life as a copy of #1027155

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027157
Snippet name: philosophyBot1_enableAddSimplifier (v1)
Eternal ID of this version: #1027157/1
Text MD5: 8d765ab43b720706793436e75cda9eab
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-22 17:02:07
Source code size: 332 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 163 / 188
Referenced in: [show references]