1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
//! The loop of the v1.
//!
//! Measured on the binary of AutoHotkey v1.1.37.02: the `Loop`
//! of the v1 is a loop of files when the text of its first parameter is not a
//! number, and a loop of a number of turns when it is. The second parameter
//! is the mode of the loop of the files, and the third one is the flag of the
//! recursion.
//!
//! The mode is a number: the zero gives the files, the one gives the files and
//! the folders, and the two gives the folders alone. A text that is not a
//! number is the mode of the files, and a number that is not one of the three
//! is refused when the script loads: "Parameter #2 invalid.\n Specifically:
//! {the text that the script wrote}".
//!
//! The flag of the recursion is a zero or a one, and the text that is not one
//! of them is refused when the script loads: "Parameter #3 invalid.\n
//! Specifically: {the text that the script wrote}". The v1 checks the
//! two of them when the script loads, and it waits for the run when the text
//! carries the name of a variable.
//!
//! Measured on the binary of AutoHotkey v1.1.37.02: the first
//! parameter of the `Loop` of the v1 names the kind of the loop when it is the
//! "Read" or the "Parse" and when another parameter comes after it: the
//! `Loop, Read` alone is a loop of the files that match the pattern "Read".
//! The second parameter of the `Loop, Parse` is the name of the variable whose
//! text is separated, and not its value.
use format;
use String;
use Vec;
use the_whole_number_at_the_start_of_a_text;
/// The mode of the loop of the files of the v1: the files alone.
pub const THE_FILES: u8 = 0;
/// The mode of the loop of the files of the v1: the files and the folders.
pub const THE_FILES_AND_THE_FOLDERS: u8 = 1;
/// The mode of the loop of the files of the v1: the folders alone.
pub const THE_FOLDERS: u8 = 2;
/// The mode of the loop of the files of the v1.
///
/// The text is trimmed, and the number that it holds is the whole number that
/// starts at its beginning: the "1e3" is one and the "2.7" is two. A text
/// that does not start with a number is the mode of the files, and a number
/// that is not one of the three modes is refused.
pub
/// The refusal of the mode of the loop of the files of the v1.
///
/// The v1 waits for the run when the text carries the name of a variable: the
/// value of it is the mode then, and the v1 refuses the value that is not one
/// of the three modes.
pub
/// The refusal of the flag of the recursion of the loop of the files of the v1.
///
/// The flag is a zero or a one. The v1 waits for the run when the text
/// carries the name of a variable, and the value that is not a zero or a one
/// is not a failure then: the loop does not walk into the folders.
pub
/// Whether the flag of the recursion asks for the folders.
///
/// The v1 reads the flag when the loop runs, and the text that is not a one
/// is a loop that does not walk into the folders.
pub
/// The refusal of the mode of the `Loop, Reg` of the v1: the letters are
/// the K of the keys, the V of the values and the R of the recursion.
///
/// Measured on the binary of v1.1.37.02: the mode that is not there is
/// the values alone, and the letter that is not one of the three is
/// "Parameter #N invalid.".
pub
/// The refusal of the parameters of the loop of the v1.
///
/// The first parameter of the loop is the count or the pattern of the files,
/// the second one is the mode, and the third one is the flag of the
/// recursion. The v1 checks the two of them when the script loads.
pub
/// The refusal of the name of the variable of the parse loop of the v1.
///
/// Measured on the binary of AutoHotkey v1.1.37.02: the second
/// parameter of the `Loop, Parse` is the name of the variable whose text is
/// separated, and the v1 checks the name when the script loads: the name that
/// carries a character that is not a letter, a digit or the underscore is
/// refused with "The following variable name contains an illegal character."
/// and the name after it.
///
/// Measured on the binary of AutoHotkey v1.1.37.02: the name
/// that carries a percent sign is the name of another variable whose value is
/// the name: the `Loop, Parse, %x%, "|"` separates the text of the variable
/// that the value of `x` names. The v1 waits for the run to know the name, and
/// the tree waits for it too.
pub
/// Whether the delimiters of the parse loop ask for the comma separated
/// values.
///
/// Measured on the binary of AutoHotkey v1.1.37.02: the word is
/// "CSV", and the case of it does not matter, and the spaces that are around
/// it do not matter either: the " CSV" is the comma separated value format.
pub
/// The fields of the text that is separated in the comma separated value
/// format.
///
/// Measured on the binary of AutoHotkey v1.1.37.02: the comma
/// separates the fields, and the field that begins with a quote is a field
/// that is quoted: the comma that is inside it is a literal, and the two
/// quotes that are together are one quote. The text that comes after the
/// quote that closes the field is left out: the `"a" ,b` is the field "a" and
/// the field "b". The field that does not begin with a quote is the text that
/// comes until the comma, and the quote that is inside it is a literal.
///
/// The characters that are left out are not used in this format.
pub