1 | |
2 | clause(Lisp): "[]"(if, "[]"($x, and, not, "()"($y)), then, "[]"($x, xor, $y), if, "[]"(not, "()"($x), and, $y), then, "[]"($x, xor, $y)) => [l("if *", l("[]", "$x", "and", "not", l("()", "$y"))), l("then *", l("[]", "$x", "xor", "$y")), l("if *", l("[]", "not", l("()", "$x"), "and", "$y")), l("then *", l("[]", "$x", "xor", "$y"))] |
3 | clause(Lisp): "[]"("[]"(not, "()"(true)), should, be, false) => null |
4 | clause(Lisp): "[]"(mrshutco, is, a, human) => [l("mrshutco *", "is"), l("a *", "human")] |
5 | clause(Lisp): "[]"("[]"(not, "()"(false)), should, be, true) => null |
6 | clause(Lisp): "[]"(if, $x, and, "!", and, false, then, "[]"(not, "()"($x))) => [l("if *", "$x"), l("and *", "!"), l("and *", "false"), l("then *", l("[]", "not", l("()", "$x")))] |
7 | clause(Lisp): "[]"(not, "()"($x)) => [l("not *", l("()", "$x"))] |
8 | clause(Lisp): "[]"(if, $a, and, $b, then, "[]"($a, and, $b)) => [l("if *", "$a"), l("and *", "$b"), l("then *", l("[]", "$a", "and", "$b"))] |
9 | clause(Lisp): "[]"(if, "[]"($c, "=", tocons, "()"($list)), and, "[]"($e, "=", iter, $c), then, "[]"($e, is, in, list, $list)) => [l("if *", l("[]", "$c", "=", "tocons", l("()", "$list"))), l("and *", l("[]", "$e", "=", "iter", "$c")), l("then *", l("[]", "$e", "is", "in", "list", "$list"))] |
10 | clause(Lisp): "[]"(lasagna, is, tasty) => null |
11 | clause(Lisp): "[]"(if, "[]"($c, "=", tocons, "()"($list)), and, "[]"($e, "=", iter, $c), then, "[]"($e, in, $c)) => [l("if *", l("[]", "$c", "=", "tocons", l("()", "$list"))), l("and *", l("[]", "$e", "=", "iter", "$c")), l("then *", l("[]", "$e", "in", "$c"))] |
12 | clause(Lisp): "[]"(if, $a, then, "[]"($a, or, $b)) => [l("if *", "$a"), l("then *", l("[]", "$a", "or", "$b"))] |
13 | clause(Lisp): "[]"(if, $b, then, "[]"($a, or, $b)) => [l("if *", "$b"), l("then *", l("[]", "$a", "or", "$b"))] |
14 | clause(Lisp): "[]"($head, "=", iter, "[]"(cons, $head, $tail)) => null |
15 | clause(Lisp): "[]"(if, "[]"($x, "=", iter, $tail), then, "[]"($x, "=", iter, "[]"(cons, $head, $tail))) => [l("if *", l("[]", "$x", "=", "iter", "$tail")), l("then *", l("[]", "$x", "=", "iter", l("[]", "cons", "$head", "$tail")))] |
16 | clause(Lisp): "[]"(if, $x, then, "[]"(verify, "[]"($x, should, be, true))) => [l("if *", "$x"), l("then *", l("[]", "verify", l("[]", "$x", "should", "be", "true")))] |
17 | clause(Lisp): "[]"(if, "[]"($a, "=", intmul, "()"("[]"($b, ",", $c))), then, "[]"($a, "=", smartmul, "()"("[]"($b, ",", $c)))) => [l("if *", l("[]", "$a", "=", "intmul", l("()", l("[]", "$b", ",", "$c")))), l("then *", l("[]", "$a", "=", "smartmul", l("()", l("[]", "$b", ",", "$c"))))] |
18 | clause(Lisp): "[]"(if, "[]"($b, "=", intdiv, "()"("[]"($a, ",", $c))), then, "[]"($a, "=", smartmul, "()"("[]"($b, ",", $c)))) => [l("if *", l("[]", "$b", "=", "intdiv", l("()", l("[]", "$a", ",", "$c")))), l("then *", l("[]", "$a", "=", "smartmul", l("()", l("[]", "$b", ",", "$c"))))] |
19 | clause(Lisp): "[]"(if, "[]"($c, "=", intdiv, "()"("[]"($a, ",", $b))), then, "[]"($a, "=", smartmul, "()"("[]"($b, ",", $c)))) => [l("if *", l("[]", "$c", "=", "intdiv", l("()", l("[]", "$a", ",", "$b")))), l("then *", l("[]", "$a", "=", "smartmul", l("()", l("[]", "$b", ",", "$c"))))] |
20 | clause(Lisp): "[]"(if, "[]"(not, "()"($x)), then, "[]"(verify, "[]"($x, should, be, false))) => [l("if *", l("[]", "not", l("()", "$x"))), l("then *", l("[]", "verify", l("[]", "$x", "should", "be", "false")))] |
21 | clause(Lisp): "[]"(if, $x, then, "()"($x)) => [l("if *", "$x"), l("then *", l("()", "$x"))] |
22 | clause(Lisp): "[]"("\"and\"", is, a, fill, word) => null |
23 | clause(Lisp): "[]"("\",\"", is, a, fill, word) => null |
24 | clause(Lisp): "[]"(feet, is, the, plural, of, foot) => [l("feet *", "is"), l("the *", "plural"), l("of *", "foot")] |
25 | clause(Lisp): "[]"(bits, is, the, plural, of, bit) => [l("bits *", "is"), l("the *", "plural"), l("of *", "bit")] |
26 | Starting on goal: Prolog$Goal(car=l("[]", "not", l("()", l("[]", "true", "or", "true")))) |
27 | Goal arity 2: "[]"(not, "()"("[]"(true, or, true))) |
28 | Head goal: "[]"(not, "()"("[]"(true, or, true))). Trying clause: "[]"(not, "()"(_1)) :- _1; "!"; false |
29 | Clause unifies to: "[]"(not, "()"("[]"(true, or, true))) :- "[]"(true, or, true); "!"; false |
30 | Goal arity 3: "[]"(true, or, true) |
31 | New goal: "[]"(true, or, true); "!"; false |
32 | Head goal: "[]"(true, or, true); "!"; false. Trying clause: "[]"(_2, xor, _3) :- "[]"(_2, and, not, "()"(_3)); "[]"(_2, xor, _3); "[]"(not, "()"(_2), and, _3) |
33 | No match for clause. |
34 | Head goal: "[]"(true, or, true); "!"; false. Trying clause: "[]"(_4, and, _5) :- _4; _5 |
35 | No match for clause. |
36 | Head goal: "[]"(true, or, true); "!"; false. Trying clause: "[]"(lasagna, is, tasty) |
37 | No match for clause. |
38 | Head goal: "[]"(true, or, true); "!"; false. Trying clause: "[]"(_6, in, _7) :- "[]"(_7, "=", tocons, "()"(_8)); "[]"(_6, "=", iter, _7) |
39 | No match for clause. |
40 | Head goal: "[]"(true, or, true); "!"; false. Trying clause: "[]"(_9, or, _10) :- _9 |
41 | Clause unifies to: "[]"(true, or, true) :- true |
42 | Goal arity 0: true |
43 | New goal: true |
44 | Head goal: true. Trying clause: true |
45 | Clause unifies to: true |
46 | SUCCESS! |
47 | Head goal: true. Trying clause: nativeTest2 :- native |
48 | No match for clause. |
49 | Head goal: true. Trying clause: nativeFail :- native |
50 | No match for clause. |
51 | Head goal: "[]"(true, or, true); "!"; false. Trying clause: "[]"(_11, or, _12) :- _12 |
52 | Clause unifies to: "[]"(true, or, true) :- true |
53 | Goal arity 0: true |
54 | New goal: true |
55 | Head goal: true. Trying clause: true |
56 | Clause unifies to: true |
57 | SUCCESS! |
Snippet is not live.
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #3000225 |
Snippet name: | Answer for stefanreich (>> log) |
Eternal ID of this version: | #3000225/1 |
Text MD5: | 1372afda0b75b0dd4e24e6ad079ffecb |
Author: | someone |
Category: | |
Type: | New Tinybrain snippet |
Gummipassword: | eleutheria-for-user |
Uploaded from IP: | 69.10.46.185 |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-03-06 02:17:55 |
Source code size: | 5395 bytes / 57 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 409 / 77 |
Referenced in: | [show references] |