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

87
LINES

< > BotCompany Repo | #3000483 // Smart Bot's answer to: !fresh linesWithSpaces(termsContainingAllJavaTokens("if", "then"))

New Tinybrain snippet

1  
[14363 ms] !store-triple "#guessed language is german" -> if then -> #say "Sorry, I don't speak German"
2  
3  
!store-triple {a and b} is true -> if X then Y -> {a is true} and {b is true}
4  
5  
!store-triple {a is true} and {b is true} -> if X then Y -> {a and b} is true
6  
7  
"!eval flexMatchIC(/"if * then * endif/", loadSnippet(#1011999))"
8  
9  
"!eval getFlexMatchIC(/"if * then * endif/", loadSnippet(#1011999))"
10  
11  
[[
12  
If   swic(trimFirstLine(#input), "If ")
13  
and  swic(trimLastLine(#input), "then ")
14  
then (#input is multiline-if-then)
15  
]] -> is -> the multiline-if-then-rule
16  
17  
[[
18  
If   swic(trimFirstLine(#input), "If ")
19  
and  swic(trimLastLine(#input), "then ")
20  
then (#input is multiline-if-then)
21  
]] is the multiline-if-then-rule
22  
23  
[[If  (swic(trimFirstLine(#input), "If ")
24  
and  (swic(trimLastLine(#input), "then ")
25  
then (#input is multiline-if-then)]] -> is -> the multiline-if-then-rule
26  
27  
[[If  (swic(trimFirstLine(#input), "If ")
28  
and  (swic(trimLastLine(#input), "then ")
29  
then (#input is multiline-if-then)]] is the multiline-if-then-rule
30  
31  
[if, "what is 2+2", then, "4. duh"]
32  
33  
an if-then pattern
34  
35  
an if-then pattern -> is -> a pattern
36  
37  
an if-then pattern is a pattern
38  
39  
if  (Unix is the best operating system)
40  
then (Unix
41  
42  
if  (Unix is the best operating system)
43  
then (Unix is an operating system)
44  
45  
if (Unix -> is -> the best operating system) then (Unix
46  
47  
if (Unix -> is -> the best operating system) then (Unix is an operating system)
48  
49  
if * then * endif
50  
51  
if * then * endif" flexMatchI"
52  
53  
if * then * endif" is an if patter"
54  
55  
if * then * endif" with flexMatchI"
56  
57  
if * then * endif" with flexMatchIC is an if patter"
58  
59  
if * then * endif/" flexMatchI/"
60  
61  
if * then * endif/" with flexMatchI/"
62  
63  
if then
64  
65  
if X then Y
66  
67  
if {$X is too big} then {$X does not fit
68  
69  
if {$X is too big} then {$X does not fit in $Y}
70  
71  
if {(Unix is the best operating system)
72  
then (Unix is an operating system)}
73  
74  
if {(Unix is the best operating system)
75  
then (Unix}
76  
77  
if {* then * endif" with flexMatchI"}
78  
79  
if {* then * endif}
80  
81  
if {X then Y}
82  
83  
if {{$X is too big} then {$X does not fit in $Y}}
84  
85  
if-then pattern
86  
87  
the multiline-if-then-rule

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: #3000483
Snippet name: Smart Bot's answer to: !fresh linesWithSpaces(termsContainingAllJavaTokens("if", "then"))
Eternal ID of this version: #3000483/1
Text MD5: 5ce1760ad71046478f2d69a45ab3c0fa
Author: someone
Category:
Type: New Tinybrain snippet
Gummipassword: smart-bot-for-user
Uploaded from IP: 178.3.148.72
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-19 00:52:37
Source code size: 2081 bytes / 87 lines
Pitched / IR pitched: No / No
Views / Downloads: 302 / 94
Referenced in: [show references]