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

11
LINES

< > BotCompany Repo | #1027155 // philosophyBot1_enableAddSimplifier

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (8784L) is out of date.

1  
svoid philosophyBot1_enableAddSimplifier(PhilosophyBot1 bot) {
2  
  bot.addFactPreprocessor(fact -> {
3  
    S rule = $x(bot.matchString("add simplifier $x", fact));
4  
    if (rule == null) false;
5  
    print("adding simplifier: " + rule);
6  
    PairS p = tok_splitAtDoubleArrow_pair(rule);
7  
    if (p == null) false;
8  
    philosophyBot1_addSimplificationRule(bot, p.a, p.b);
9  
    true;
10  
  });
11  
}

Author comment

Began life as a copy of #1027148

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: #1027155
Snippet name: philosophyBot1_enableAddSimplifier
Eternal ID of this version: #1027155/6
Text MD5: 1f0bcb4375423e5ec516ba468257f80f
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:07:02
Source code size: 389 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 183 / 268
Version history: 5 change(s)
Referenced in: [show references]