static void lispStandardEvaluators() { // True addLispEvaluator("zivsiiacmvqrolto", main.<Lisp, Bool>f1_const(Bool.TRUE)); // Not (X) addLispEvaluator("wynynoujiakixjus", new F1<Lisp,Bool>() { Bool get(Lisp l) { ret !isTrue(callLispEvaluator(l.get(0))); } }); // X <> Y addLispEvaluator("buahjsodljsaxvaq", new F1<Lisp,Bool>() { Bool get(Lisp l) { ret l.size() == 2 && neq(l.get(0), l.get(1)); } }); // X > Y addLispEvaluator("wdbphzfoxwlrhdyl", new F1<Lisp,Bool>() { Bool get(Lisp l) { ret l.size() == 2 && eq(compareIfNotNull(lispToBigInt(l.get(0)), lispToBigInt(l.get(1))), 1); } }); // I don't know if (X) addLispEvaluator("mzdvauejerzefagk", new F1<Lisp,Bool>() { Bool get(Lisp l) { ret l.size() == 1 && notKnownIf(l.get(0)); } }); // There is no statement with operator X. addLispEvaluator("zhoulgsatpswstfa", new F1<Lisp,Bool>() { Bool get(Lisp l) { ret l.size() == 1 && !hasTruthWithHead(l.raw(0)); } }); // There is no answer to (X). addLispEvaluator("xikyminwmeahxiws", new F1<Lisp,Bool>() { Bool get(Lisp l) { bool ok = l.size() == 1 && null == lispForward("pxavyqesoqyqbipb", l.get(0)); print("Checking for answer to " + l.get(0) + " => " + ok); ret ok; } }); // :- rules for (final Lisp rule : lispTruth2("sicrogpdrtkiptun")) addLispEvaluator(rule.raw(0), new F1<Lisp,Bool>() { Bool get(Lisp l) { ret l.isLeaf() && matchCondition_simple(rule.get(1)); } }); }
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: | #1008126 |
| Snippet name: | lispStandardEvaluators - these are the Lisp -> Bool evaluators |
| Eternal ID of this version: | #1008126/8 |
| Text MD5: | c5068f0ca21aac0a7b45902b0e2a1702 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-04-29 19:57:57 |
| Source code size: | 1615 bytes / 58 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 702 / 749 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |