Libraryless. Click here for Pure Java version (9591L/62K).
1 | svoid philosophyBot1_enableAddSimplifier_withTrails(PhilosophyBot1 bot) {
|
2 | bot.addFactPreprocessor(fact -> {
|
3 | S rule = $x(bot.matchString("add simplifier $x", fact));
|
4 | if (rule == null) false; |
5 | if (bot.verbose) print("adding simplifier: " + rule);
|
6 | PairS p = tok_splitAtDoubleArrow_pair(rule); |
7 | if (p == null) false; |
8 | philosophyBot1_addSimplificationRule_withTrails(bot, p.a, p.b, fact); |
9 | true; |
10 | }); |
11 | } |
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: | #1027179 |
| Snippet name: | philosophyBot1_enableAddSimplifier_withTrails |
| Eternal ID of this version: | #1027179/4 |
| Text MD5: | ab0cd91054220ea9c4c8ecb93a04f1d5 |
| Transpilation MD5: | 6c04df81ad54924fb8b790cce638a235 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-04-23 10:32:22 |
| Source code size: | 434 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 403 / 546 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |