-
Notifications
You must be signed in to change notification settings - Fork 177
/
m3regex005.luatex.tlg
381 lines (381 loc) · 12.7 KB
/
m3regex005.luatex.tlg
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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
This is a generated file for the LaTeX (2e + expl3) validation system.
Don't change this file in any respect.
Author: Bruno Le Floch
============================================================
TEST 1: on token lists
============================================================
The token list contains the tokens:
> { (begin-group character {)
> a (the letter a)
> b (the letter b)
> c (the letter c)
> } (end-group character }).
<recently read> }
l. ... }
The token list contains the tokens:
> { (begin-group character {)
> i (the letter i)
> j (the letter j)
> k (the letter k)
> } (end-group character }).
<recently read> }
l. ... }
The token list contains the tokens:
> a (the letter a)
> b (the letter b)
> \undef (control sequence=undefined).
<recently read> }
l. ... }
The token list contains the tokens:
> c (the letter c).
<recently read> }
l. ... }
The token list contains the tokens:
> d (the letter d)
> \foobar (control sequence=undefined)
> d (the letter d)
> e (the letter e)
> f (the letter f).
<recently read> }
l. ... }
The token list contains the tokens:
> \de: (control sequence=undefined).
<recently read> }
l. ... }
The token list contains the tokens:
> \hi: (control sequence=undefined)
> \jk: (control sequence=undefined).
<recently read> }
l. ... }
The token list contains the tokens:
> \uv: (control sequence=undefined).
<recently read> }
l. ... }
The token list contains the tokens:
> \ab (control sequence=undefined)
> X (the letter X)
> \cd (control sequence=undefined).
<recently read> }
l. ... }
The token list contains the tokens:
> \deX (control sequence=undefined)
> \f (control sequence=undefined)
> \ (control sequence=\ )
> X (the letter X)
> X (the letter X)
> \O (control sequence=macro:->\TU-cmd \O \TU\O ).
<recently read> }
l. ... }
! LaTeX3 Error: Missing brace inserted when splitting or extracting
(LaTeX3) submatches.
For immediate help type H <return>.
...
l. ... }
LaTeX was asked to do some regular expression operation, and the resulting
token list would not have the same number of begin-group and end-group tokens.
Braces were inserted: 1 left, 2 right.
The token list contains the tokens:
> \abc (control sequence=undefined)
> { (begin-group character {)
> } (end-group character }).
<recently read> }
l. ... }
The token list contains the tokens:
> b (the letter b)
> c (the letter c).
<recently read> }
l. ... }
The token list contains the tokens:
> { (begin-group character {)
> d (the letter d)
> } (end-group character }).
<recently read> }
l. ... }
The token list contains the tokens:
> { (begin-group character {)
> e (the letter e)
> } (end-group character }).
<recently read> }
l. ... }
============================================================
============================================================
TEST 2: with somewhat unbalanced braces
============================================================
The token list \l_tmpa_tl contains the tokens:
> [ (begin-group character [)
> a (the letter a)
> ] (end-group character ])
> [ (begin-group character [)
> b (the letter b)
> ] (end-group character ])
> { (begin-group character {)
> { (begin-group character {)
> [ (begin-group character [)
> c (the letter c)
> ] (end-group character ])
> [ (begin-group character [)
> d (the letter d)
> ] (end-group character ])
> { (begin-group character {)
> { (begin-group character {)
> \e (control sequence=undefined)
> \e (control sequence=undefined)
> } (end-group character })
> } (end-group character })
> [ (begin-group character [)
> f (the letter f)
> ] (end-group character ])
> } (end-group character })
> } (end-group character })
> \gh (control sequence=undefined)
> \gh (control sequence=undefined).
<recently read> }
l. ... }
============================================================
============================================================
TEST 3: Unbalanced things
============================================================
! LaTeX3 Error: Missing brace inserted when replacing.
For immediate help type H <return>.
...
l. ... }
LaTeX was asked to do some regular expression operation, and the resulting
token list would not have the same number of begin-group and end-group tokens.
Braces were inserted: 1 left, 0 right.
! LaTeX3 Error: Missing brace inserted when replacing.
For immediate help type H <return>.
...
l. ... }
LaTeX was asked to do some regular expression operation, and the resulting
token list would not have the same number of begin-group and end-group tokens.
Braces were inserted: 0 left, 1 right.
The token list \l_tmpa_tl contains the tokens:
> { (begin-group character {)
> { (begin-group character {)
> \{{ (control sequence=undefined)
> > (end-group character >)
> { (begin-group character {)
> \>{ (control sequence=undefined)
> } (end-group character })
> b (the letter b)
> \}b (control sequence=undefined)
> } (end-group character }).
<recently read> }
l. ... }
============================================================
============================================================
TEST 4: Macro parameters
============================================================
! LaTeX3 Error: Category code '\cP' ignored inside '\c{...}' in a replacement
(LaTeX3) text.
For immediate help type H <return>.
...
l. ... }
In a replacement text, the category codes of the argument of '\c{...}' are
ignored when building the control sequence name.
The token list \l_tmpa_tl contains the tokens:
> \# (control sequence=\char"23=35)
> # (macro parameter character #)
> \#x (control sequence=undefined).
<recently read> }
l. ... }
The token list \l_tmpa_tl contains the tokens:
> x (the letter x)
> \c_parameter_token (control sequence=macro parameter character #)
> x (the letter x).
<recently read> }
l. ... }
============================================================
============================================================
TEST 5: Nested classes
============================================================
{ABYZz|} {zA}
{{ghi}} {{q}}
============================================================
============================================================
TEST 6: Escaped u
============================================================
{x} {x##|\c_empty_tl } {x}
The token list \l_tmpa_tl contains the tokens:
> A (the letter A)
> B (the letter B)
> y (the letter y)
> \c_space_tl (control sequence=macro:-> )
> # (macro parameter character #)
> { (begin-group character {)
> } (end-group character })
> y (the letter y)
> \c_space_tl (control sequence=macro:-> )
> # (macro parameter character #).
<recently read> }
l. ... }
The token list \l_tmpa_tl contains the tokens:
> \if_false: (control sequence=\iffalse)
> \if_false: (control sequence=\iffalse)
> \c_parameter_token (control sequence=macro parameter character #)
> \if_false: (control sequence=\iffalse)
> \if_false: (control sequence=\iffalse)
> \c_parameter_token (control sequence=macro parameter character #).
<recently read> }
l. ... }
============================================================
============================================================
TEST 7: Catcodes shouldn't "stick"
============================================================
{A*012} { +AZ- }
============================================================
============================================================
TEST 8: The \K command
============================================================
{d} {a} {d} {ace} {a} {e} {d} {b} {d} {ce} {b} {e}
! LaTeX3 Error: Invalid escape '\K' within a control sequence.
For immediate help type H <return>.
...
l. ... }
The escape sequence '\K' may not appear within a control sequence test
introduced by '\c{'.
> Compiled regex {\c {a|b\K }}:
+-branch
control sequence \a or \bK.
<recently read> }
l. ... }
{1} {a}
{c3} {bc}
! LaTeX3 Error: Category code '\cB' ignored inside '\c{...}' in a replacement
(LaTeX3) text.
For immediate help type H <return>.
...
l. ... }
In a replacement text, the category codes of the argument of '\c{...}' are
ignored when building the control sequence name.
The token list \l_tmpa_tl contains the tokens:
> a (the letter a)
> < (the character <)
> \x (control sequence=undefined)
> > (the character >)
> b (the letter b)
> < (the character <)
> \x (control sequence=undefined)
> > (the character >)
> c (the letter c)
> < (the character <)
> \x (control sequence=undefined)
> > (the character >).
<recently read> }
l. ... }
{} {foo} {} {} {} {foo} {} {foo}
{?} {?}
============================================================
============================================================
TEST 9: Catcodes and groups
============================================================
{ab*ef} {ab*}
============================================================
============================================================
TEST 10: Caseless matching and cs
============================================================
{\abcd e} {\abcd E}
{xabc\abc } {Xabc\abc }
============================================================
============================================================
TEST 11: Braces
============================================================
|\{}|
The token list \l_tmpa_tl contains the tokens:
> \{ (control sequence=\protected macro:->\ifmmode \lbrace \else \textb\ETC.)
> } (the letter }).
<recently read> }
l. ... }
! LaTeX3 Error: Missing right brace inserted in replacement text.
For immediate help type H <return>.
...
l. ... }
There was 1 missing right brace.
|\csname\endcsname|
============================================================
============================================================
TEST 12: More tests of cs
============================================================
{\abcdefghijkl }
============================================================
============================================================
TEST 13: Replaced space catcode
============================================================
blank space
blank space
blank space
============================================================
============================================================
TEST 14: Catcode group in replacement
============================================================
! LaTeX3 Error: Escaped letter or digit after category code in replacement
(LaTeX3) text.
For immediate help type H <return>.
...
l. ... }
In a replacement text, the '\c' escape sequence can be followed by one of the
letters 'ABCDELMOPSTU' representing the character category. Then, a character
must follow, not '\1'.
The token list \l_tmpa_tl contains the tokens:
> q (the letter q)
> e (subscript character e)
> t (superscript character t)
> a (the letter a)
> b (the letter b)
> Z (the letter Z)
> 1 (math shift character 1)
> p (superscript character p)
> s (subscript character s)
> f (the letter f)
> q (the letter q)
> e (subscript character e)
> t (superscript character t)
> a (the character a)
> b (the character b)
> Z (the letter Z)
> 1 (math shift character 1)
> p (superscript character p)
> s (subscript character s)
> f (the letter f).
<recently read> }
l. ... }
! LaTeX3 Error: Missing right parenthesis inserted in replacement text.
For immediate help type H <return>.
...
l. ... }
There was 1 missing right parenthesis.
> \l_tmpb_tl=.
! LaTeX3 Error: Missing right parenthesis inserted in replacement text.
For immediate help type H <return>.
...
l. ... }
There were 2 missing right parentheses.
> \l_tmpb_tl=.
============================================================
============================================================
TEST 15: Catcode used by default
============================================================
\g__cctab_next_cctab=\catcodetable...
The token list \l_tmpa_tl contains the tokens:
> ^^M (the character ^^M)
> ! (the character !)
> @ (the character @)
> # (macro parameter character #)
> # (macro parameter character #)
> # (macro parameter character #)
> $ (math shift character $)
> % (the character %)
> $ (math shift character $)
> ^ (superscript character ^)
> & (alignment tab character &)
> * (the character *)
> { (begin-group character {)
> (blank space )
> } (end-group character })
> : (the character :)
> _ (subscript character _)
> ~ (active character=macro:->\nobreakspace {})
> \ (the character \).
<recently read> }
l. ... }
============================================================