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

172
LINES

< > BotCompany Repo | #3000273 // Answer for stefanreich (>> log [say $x] in "drop 'the' test")

New Tinybrain snippet

1  
TRUE.
2  
```
3  
$x = dadbot is really funny
4  
```
5  
```
6  
Starting on goal: say $x
7  
Goal arity 2: say $x
8  
nextSolution
9  
  Push $x (_1)
10  
  Push $collector (_2)
11  
  Resetting variable $collector (_2)
12  
  Resetting variable $x (_1)
13  
  Push $x (_3)
14  
  Resetting variable $x (_3)
15  
  Push $e2 (_4)
16  
  Push $e1 (_5)
17  
  Resetting variable $e1 (_5)
18  
  Resetting variable $e2 (_4)
19  
  Push _4 ($x)
20  
Got clause: say _4
21  
  Clause unifies to: say $x
22  
  gdash: true
23  
Goal arity 0: true
24  
 Got clause: true
25  
   Clause unifies to: true
26  
   gdash: _5 = theory "dadbot+1"
27  
 Goal arity 4: _5 = theory "dadbot+1"
28  
    Push $x (_6)
29  
    Resetting variable $x (_6)
30  
    Push _6 (_5)
31  
    Resetting variable _6 (_5)
32  
    Push $x (_7)
33  
    Push $collector (_8)
34  
    Resetting variable $collector (_8)
35  
    Resetting variable $x (_7)
36  
    Push _7 (_5)
37  
    Resetting variable _7 (_5)
38  
    Push $a (_9)
39  
    Push $x (_10)
40  
    Push $y (_11)
41  
    Resetting variable $y (_11)
42  
    Resetting variable $x (_10)
43  
    Resetting variable $a (_9)
44  
    Push _9 (_5)
45  
    Resetting variable _9 (_5)
46  
    Push $a (_12)
47  
    Push $x (_13)
48  
    Push $y (_14)
49  
    Resetting variable $y (_14)
50  
    Resetting variable $x (_13)
51  
    Resetting variable $a (_12)
52  
    Push _12 (_5)
53  
    Resetting variable _12 (_5)
54  
    Push $a (_15)
55  
    Push $x (_16)
56  
    Push $y (_17)
57  
    Resetting variable $y (_17)
58  
    Resetting variable $x (_16)
59  
    Resetting variable $a (_15)
60  
    Push _15 (_5)
61  
    Resetting variable _15 (_5)
62  
    Push $a (_18)
63  
    Push $x (_19)
64  
    Push $y (_20)
65  
    Resetting variable $y (_20)
66  
    Resetting variable $x (_19)
67  
    Resetting variable $a (_18)
68  
    Push _18 (_5)
69  
    Resetting variable _18 (_5)
70  
    Push $x (_21)
71  
    Push $y (_22)
72  
    Resetting variable $y (_22)
73  
    Resetting variable $x (_21)
74  
    Push _21 (_5)
75  
    Resetting variable _21 (_5)
76  
    Push $x (_23)
77  
    Push $y (_24)
78  
    Resetting variable $y (_24)
79  
    Resetting variable $x (_23)
80  
    Push _23 (_5)
81  
    Resetting variable _23 (_5)
82  
    Push $x (_25)
83  
    Push $word (_26)
84  
    Push $y (_27)
85  
    Resetting variable $y (_27)
86  
    Resetting variable $word (_26)
87  
    Resetting variable $x (_25)
88  
    Push _25 (_5)
89  
    Resetting variable _25 (_5)
90  
    Push $x (_28)
91  
    Push $name (_29)
92  
    Resetting variable $name (_29)
93  
    Resetting variable $x (_28)
94  
    Push _28 (_5)
95  
    Push _29 ("\"dadbot+1\"")
96  
  Got clause: _28 = theory _29
97  
    Clause unifies to: _5 = theory "dadbot+1"
98  
   Clause is native.
99  
    Push _5 ("[]"(the, dadbot, is, really, funny))
100  
    gdash: $x = removeword ([the , [the dadbot is really funny]])
101  
  Goal arity 4: $x = removeword ([the , [the dadbot is really funny]])
102  
     Push $x (_30)
103  
     Resetting variable $x (_30)
104  
     Push _30 ($x)
105  
     Resetting variable _30 ($x)
106  
     Push $x (_31)
107  
     Push $collector (_32)
108  
     Resetting variable $collector (_32)
109  
     Resetting variable $x (_31)
110  
     Push _31 ($x)
111  
     Resetting variable _31 ($x)
112  
     Push $a (_33)
113  
     Push $x (_34)
114  
     Push $y (_35)
115  
     Resetting variable $y (_35)
116  
     Resetting variable $x (_34)
117  
     Resetting variable $a (_33)
118  
     Push _33 ($x)
119  
     Resetting variable _33 ($x)
120  
     Push $a (_36)
121  
     Push $x (_37)
122  
     Push $y (_38)
123  
     Resetting variable $y (_38)
124  
     Resetting variable $x (_37)
125  
     Resetting variable $a (_36)
126  
     Push _36 ($x)
127  
     Resetting variable _36 ($x)
128  
     Push $a (_39)
129  
     Push $x (_40)
130  
     Push $y (_41)
131  
     Resetting variable $y (_41)
132  
     Resetting variable $x (_40)
133  
     Resetting variable $a (_39)
134  
     Push _39 ($x)
135  
     Resetting variable _39 ($x)
136  
     Push $a (_42)
137  
     Push $x (_43)
138  
     Push $y (_44)
139  
     Resetting variable $y (_44)
140  
     Resetting variable $x (_43)
141  
     Resetting variable $a (_42)
142  
     Push _42 ($x)
143  
     Resetting variable _42 ($x)
144  
     Push $x (_45)
145  
     Push $y (_46)
146  
     Resetting variable $y (_46)
147  
     Resetting variable $x (_45)
148  
     Push _45 ($x)
149  
     Resetting variable _45 ($x)
150  
     Push $x (_47)
151  
     Push $y (_48)
152  
     Resetting variable $y (_48)
153  
     Resetting variable $x (_47)
154  
     Push _47 ($x)
155  
     Resetting variable _47 ($x)
156  
     Push $x (_49)
157  
     Push $word (_50)
158  
     Push $y (_51)
159  
     Resetting variable $y (_51)
160  
     Resetting variable $word (_50)
161  
     Resetting variable $x (_49)
162  
     Push _49 ($x)
163  
     Push _50 (the)
164  
     Push _51 ("[]"(the, dadbot, is, really, funny))
165  
   Got clause: _49 = removeWord ([_50 , _51])
166  
     Clause unifies to: $x = removeWord ([the , [the dadbot is really funny]])
167  
    Clause is native.
168  
     Push $x ("[]"(dadbot, is, really, funny))
169  
     gdash: -
170  
SUCCESS!
171  
  solution found in step 27```
172  
[done] 4 ms

download  show line numbers   

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: #3000273
Snippet name: Answer for stefanreich (>> log [say $x] in "drop 'the' test")
Eternal ID of this version: #3000273/1
Text MD5: 4096eb8b36b2e86e54612e40d2f665d5
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-11 00:05:10
Source code size: 4487 bytes / 172 lines
Pitched / IR pitched: No / No
Views / Downloads: 476 / 117
Referenced in: [show references]