markly 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +7 -0
  2. data/bin/markly +94 -0
  3. data/ext/markly/arena.c +103 -0
  4. data/ext/markly/autolink.c +425 -0
  5. data/ext/markly/autolink.h +8 -0
  6. data/ext/markly/blocks.c +1585 -0
  7. data/ext/markly/buffer.c +278 -0
  8. data/ext/markly/buffer.h +116 -0
  9. data/ext/markly/case_fold_switch.inc +4327 -0
  10. data/ext/markly/chunk.h +135 -0
  11. data/ext/markly/cmark-gfm-core-extensions.h +54 -0
  12. data/ext/markly/cmark-gfm-extension_api.h +736 -0
  13. data/ext/markly/cmark-gfm-extensions_export.h +42 -0
  14. data/ext/markly/cmark-gfm.h +817 -0
  15. data/ext/markly/cmark-gfm_export.h +42 -0
  16. data/ext/markly/cmark-gfm_version.h +7 -0
  17. data/ext/markly/cmark.c +55 -0
  18. data/ext/markly/cmark_ctype.c +44 -0
  19. data/ext/markly/cmark_ctype.h +33 -0
  20. data/ext/markly/commonmark.c +519 -0
  21. data/ext/markly/config.h +76 -0
  22. data/ext/markly/core-extensions.c +27 -0
  23. data/ext/markly/entities.inc +2138 -0
  24. data/ext/markly/ext_scanners.c +1159 -0
  25. data/ext/markly/ext_scanners.h +24 -0
  26. data/ext/markly/extconf.rb +7 -0
  27. data/ext/markly/footnotes.c +40 -0
  28. data/ext/markly/footnotes.h +25 -0
  29. data/ext/markly/houdini.h +57 -0
  30. data/ext/markly/houdini_href_e.c +100 -0
  31. data/ext/markly/houdini_html_e.c +66 -0
  32. data/ext/markly/houdini_html_u.c +149 -0
  33. data/ext/markly/html.c +465 -0
  34. data/ext/markly/html.h +27 -0
  35. data/ext/markly/inlines.c +1633 -0
  36. data/ext/markly/inlines.h +29 -0
  37. data/ext/markly/iterator.c +159 -0
  38. data/ext/markly/iterator.h +26 -0
  39. data/ext/markly/latex.c +466 -0
  40. data/ext/markly/linked_list.c +37 -0
  41. data/ext/markly/man.c +278 -0
  42. data/ext/markly/map.c +122 -0
  43. data/ext/markly/map.h +41 -0
  44. data/ext/markly/markly.c +1226 -0
  45. data/ext/markly/markly.h +16 -0
  46. data/ext/markly/node.c +979 -0
  47. data/ext/markly/node.h +118 -0
  48. data/ext/markly/parser.h +58 -0
  49. data/ext/markly/plaintext.c +235 -0
  50. data/ext/markly/plugin.c +36 -0
  51. data/ext/markly/plugin.h +34 -0
  52. data/ext/markly/references.c +42 -0
  53. data/ext/markly/references.h +26 -0
  54. data/ext/markly/registry.c +63 -0
  55. data/ext/markly/registry.h +24 -0
  56. data/ext/markly/render.c +205 -0
  57. data/ext/markly/render.h +62 -0
  58. data/ext/markly/scanners.c +20382 -0
  59. data/ext/markly/scanners.h +62 -0
  60. data/ext/markly/scanners.re +326 -0
  61. data/ext/markly/strikethrough.c +167 -0
  62. data/ext/markly/strikethrough.h +9 -0
  63. data/ext/markly/syntax_extension.c +149 -0
  64. data/ext/markly/syntax_extension.h +34 -0
  65. data/ext/markly/table.c +803 -0
  66. data/ext/markly/table.h +12 -0
  67. data/ext/markly/tagfilter.c +60 -0
  68. data/ext/markly/tagfilter.h +8 -0
  69. data/ext/markly/tasklist.c +156 -0
  70. data/ext/markly/tasklist.h +8 -0
  71. data/ext/markly/utf8.c +317 -0
  72. data/ext/markly/utf8.h +35 -0
  73. data/ext/markly/xml.c +181 -0
  74. data/lib/markly.rb +43 -0
  75. data/lib/markly/flags.rb +37 -0
  76. data/lib/markly/markly.so +0 -0
  77. data/lib/markly/node.rb +70 -0
  78. data/lib/markly/node/inspect.rb +59 -0
  79. data/lib/markly/renderer.rb +133 -0
  80. data/lib/markly/renderer/html_renderer.rb +252 -0
  81. data/lib/markly/version.rb +5 -0
  82. metadata +211 -0
@@ -0,0 +1,1159 @@
1
+ /* Generated by re2c 1.1.1 */
2
+ #include "ext_scanners.h"
3
+ #include <stdlib.h>
4
+
5
+ bufsize_t _ext_scan_at(bufsize_t (*scanner)(const unsigned char *),
6
+ unsigned char *ptr, int len, bufsize_t offset) {
7
+ bufsize_t res;
8
+
9
+ if (ptr == NULL || offset >= len) {
10
+ return 0;
11
+ } else {
12
+ unsigned char lim = ptr[len];
13
+
14
+ ptr[len] = '\0';
15
+ res = scanner(ptr + offset);
16
+ ptr[len] = lim;
17
+ }
18
+
19
+ return res;
20
+ }
21
+
22
+ bufsize_t _scan_table_start(const unsigned char *p) {
23
+ const unsigned char *marker = NULL;
24
+ const unsigned char *start = p;
25
+
26
+ {
27
+ unsigned char yych;
28
+ static const unsigned char yybm[] = {
29
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0, 64, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0,
30
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
31
+ 0, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
32
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
33
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
34
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
35
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
36
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
37
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
38
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
39
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
40
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
41
+ };
42
+ yych = *(marker = p);
43
+ if (yych <= '{') {
44
+ if (yych <= 0x1F) {
45
+ if (yych <= '\t') {
46
+ if (yych <= 0x08)
47
+ goto yy3;
48
+ goto yy4;
49
+ } else {
50
+ if (yych <= '\n')
51
+ goto yy2;
52
+ if (yych <= '\f')
53
+ goto yy4;
54
+ goto yy3;
55
+ }
56
+ } else {
57
+ if (yych <= '-') {
58
+ if (yych <= ' ')
59
+ goto yy4;
60
+ if (yych <= ',')
61
+ goto yy3;
62
+ goto yy5;
63
+ } else {
64
+ if (yych == ':')
65
+ goto yy6;
66
+ goto yy3;
67
+ }
68
+ }
69
+ } else {
70
+ if (yych <= 0xEC) {
71
+ if (yych <= 0xC1) {
72
+ if (yych <= '|')
73
+ goto yy4;
74
+ if (yych <= 0x7F)
75
+ goto yy3;
76
+ } else {
77
+ if (yych <= 0xDF)
78
+ goto yy7;
79
+ if (yych <= 0xE0)
80
+ goto yy9;
81
+ goto yy10;
82
+ }
83
+ } else {
84
+ if (yych <= 0xF0) {
85
+ if (yych <= 0xED)
86
+ goto yy11;
87
+ if (yych <= 0xEF)
88
+ goto yy10;
89
+ goto yy12;
90
+ } else {
91
+ if (yych <= 0xF3)
92
+ goto yy13;
93
+ if (yych <= 0xF4)
94
+ goto yy14;
95
+ }
96
+ }
97
+ }
98
+ yy2 : { return 0; }
99
+ yy3:
100
+ ++p;
101
+ goto yy2;
102
+ yy4:
103
+ yych = *(marker = ++p);
104
+ if (yybm[0 + yych] & 64) {
105
+ goto yy15;
106
+ }
107
+ if (yych == '-')
108
+ goto yy17;
109
+ if (yych == ':')
110
+ goto yy19;
111
+ goto yy2;
112
+ yy5:
113
+ yych = *(marker = ++p);
114
+ if (yybm[0 + yych] & 128) {
115
+ goto yy17;
116
+ }
117
+ if (yych <= ' ') {
118
+ if (yych <= 0x08)
119
+ goto yy2;
120
+ if (yych <= '\r')
121
+ goto yy21;
122
+ if (yych <= 0x1F)
123
+ goto yy2;
124
+ goto yy21;
125
+ } else {
126
+ if (yych <= ':') {
127
+ if (yych <= '9')
128
+ goto yy2;
129
+ goto yy20;
130
+ } else {
131
+ if (yych == '|')
132
+ goto yy21;
133
+ goto yy2;
134
+ }
135
+ }
136
+ yy6:
137
+ yych = *(marker = ++p);
138
+ if (yybm[0 + yych] & 128) {
139
+ goto yy17;
140
+ }
141
+ goto yy2;
142
+ yy7:
143
+ yych = *++p;
144
+ if (yych <= 0x7F)
145
+ goto yy8;
146
+ if (yych <= 0xBF)
147
+ goto yy3;
148
+ yy8:
149
+ p = marker;
150
+ goto yy2;
151
+ yy9:
152
+ yych = *++p;
153
+ if (yych <= 0x9F)
154
+ goto yy8;
155
+ if (yych <= 0xBF)
156
+ goto yy7;
157
+ goto yy8;
158
+ yy10:
159
+ yych = *++p;
160
+ if (yych <= 0x7F)
161
+ goto yy8;
162
+ if (yych <= 0xBF)
163
+ goto yy7;
164
+ goto yy8;
165
+ yy11:
166
+ yych = *++p;
167
+ if (yych <= 0x7F)
168
+ goto yy8;
169
+ if (yych <= 0x9F)
170
+ goto yy7;
171
+ goto yy8;
172
+ yy12:
173
+ yych = *++p;
174
+ if (yych <= 0x8F)
175
+ goto yy8;
176
+ if (yych <= 0xBF)
177
+ goto yy10;
178
+ goto yy8;
179
+ yy13:
180
+ yych = *++p;
181
+ if (yych <= 0x7F)
182
+ goto yy8;
183
+ if (yych <= 0xBF)
184
+ goto yy10;
185
+ goto yy8;
186
+ yy14:
187
+ yych = *++p;
188
+ if (yych <= 0x7F)
189
+ goto yy8;
190
+ if (yych <= 0x8F)
191
+ goto yy10;
192
+ goto yy8;
193
+ yy15:
194
+ yych = *++p;
195
+ if (yybm[0 + yych] & 64) {
196
+ goto yy15;
197
+ }
198
+ if (yych == '-')
199
+ goto yy17;
200
+ if (yych == ':')
201
+ goto yy19;
202
+ goto yy8;
203
+ yy17:
204
+ yych = *++p;
205
+ if (yybm[0 + yych] & 128) {
206
+ goto yy17;
207
+ }
208
+ if (yych <= 0x1F) {
209
+ if (yych <= '\n') {
210
+ if (yych <= 0x08)
211
+ goto yy8;
212
+ if (yych <= '\t')
213
+ goto yy20;
214
+ goto yy22;
215
+ } else {
216
+ if (yych <= '\f')
217
+ goto yy20;
218
+ if (yych <= '\r')
219
+ goto yy24;
220
+ goto yy8;
221
+ }
222
+ } else {
223
+ if (yych <= ':') {
224
+ if (yych <= ' ')
225
+ goto yy20;
226
+ if (yych <= '9')
227
+ goto yy8;
228
+ goto yy20;
229
+ } else {
230
+ if (yych == '|')
231
+ goto yy25;
232
+ goto yy8;
233
+ }
234
+ }
235
+ yy19:
236
+ yych = *++p;
237
+ if (yybm[0 + yych] & 128) {
238
+ goto yy17;
239
+ }
240
+ goto yy8;
241
+ yy20:
242
+ yych = *++p;
243
+ yy21:
244
+ if (yych <= '\r') {
245
+ if (yych <= '\t') {
246
+ if (yych <= 0x08)
247
+ goto yy8;
248
+ goto yy20;
249
+ } else {
250
+ if (yych <= '\n')
251
+ goto yy22;
252
+ if (yych <= '\f')
253
+ goto yy20;
254
+ goto yy24;
255
+ }
256
+ } else {
257
+ if (yych <= ' ') {
258
+ if (yych <= 0x1F)
259
+ goto yy8;
260
+ goto yy20;
261
+ } else {
262
+ if (yych == '|')
263
+ goto yy25;
264
+ goto yy8;
265
+ }
266
+ }
267
+ yy22:
268
+ ++p;
269
+ { return (bufsize_t)(p - start); }
270
+ yy24:
271
+ yych = *++p;
272
+ if (yych == '\n')
273
+ goto yy22;
274
+ goto yy8;
275
+ yy25:
276
+ yych = *++p;
277
+ if (yybm[0 + yych] & 128) {
278
+ goto yy17;
279
+ }
280
+ if (yych <= '\r') {
281
+ if (yych <= '\t') {
282
+ if (yych <= 0x08)
283
+ goto yy8;
284
+ goto yy25;
285
+ } else {
286
+ if (yych <= '\n')
287
+ goto yy22;
288
+ if (yych <= '\f')
289
+ goto yy25;
290
+ goto yy24;
291
+ }
292
+ } else {
293
+ if (yych <= ' ') {
294
+ if (yych <= 0x1F)
295
+ goto yy8;
296
+ goto yy25;
297
+ } else {
298
+ if (yych == ':')
299
+ goto yy19;
300
+ goto yy8;
301
+ }
302
+ }
303
+ }
304
+ }
305
+
306
+ bufsize_t _scan_table_cell(const unsigned char *p) {
307
+ const unsigned char *marker = NULL;
308
+ const unsigned char *start = p;
309
+
310
+ {
311
+ unsigned char yych;
312
+ static const unsigned char yybm[] = {
313
+ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 0, 64, 64, 0, 64, 64, 64, 64,
314
+ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
315
+ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
316
+ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
317
+ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
318
+ 64, 64, 128, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64,
319
+ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 0, 64,
320
+ 64, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
321
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
322
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
323
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
324
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
325
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
326
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
327
+ 0, 0, 0, 0,
328
+ };
329
+ yych = *(marker = p);
330
+ if (yybm[0 + yych] & 64) {
331
+ goto yy30;
332
+ }
333
+ if (yych <= 0xE0) {
334
+ if (yych <= '\\') {
335
+ if (yych <= '\n')
336
+ goto yy29;
337
+ if (yych <= '\r')
338
+ goto yy32;
339
+ goto yy34;
340
+ } else {
341
+ if (yych <= '|')
342
+ goto yy32;
343
+ if (yych <= 0xC1)
344
+ goto yy29;
345
+ if (yych <= 0xDF)
346
+ goto yy36;
347
+ goto yy38;
348
+ }
349
+ } else {
350
+ if (yych <= 0xEF) {
351
+ if (yych == 0xED)
352
+ goto yy40;
353
+ goto yy39;
354
+ } else {
355
+ if (yych <= 0xF0)
356
+ goto yy41;
357
+ if (yych <= 0xF3)
358
+ goto yy42;
359
+ if (yych <= 0xF4)
360
+ goto yy43;
361
+ }
362
+ }
363
+ yy29 : { return (bufsize_t)(p - start); }
364
+ yy30:
365
+ yych = *(marker = ++p);
366
+ if (yybm[0 + yych] & 64) {
367
+ goto yy30;
368
+ }
369
+ if (yych <= 0xEC) {
370
+ if (yych <= 0xC1) {
371
+ if (yych <= '\r')
372
+ goto yy29;
373
+ if (yych <= '\\')
374
+ goto yy34;
375
+ goto yy29;
376
+ } else {
377
+ if (yych <= 0xDF)
378
+ goto yy36;
379
+ if (yych <= 0xE0)
380
+ goto yy38;
381
+ goto yy39;
382
+ }
383
+ } else {
384
+ if (yych <= 0xF0) {
385
+ if (yych <= 0xED)
386
+ goto yy40;
387
+ if (yych <= 0xEF)
388
+ goto yy39;
389
+ goto yy41;
390
+ } else {
391
+ if (yych <= 0xF3)
392
+ goto yy42;
393
+ if (yych <= 0xF4)
394
+ goto yy43;
395
+ goto yy29;
396
+ }
397
+ }
398
+ yy32:
399
+ ++p;
400
+ { return 0; }
401
+ yy34:
402
+ yych = *(marker = ++p);
403
+ if (yybm[0 + yych] & 128) {
404
+ goto yy34;
405
+ }
406
+ if (yych <= 0xDF) {
407
+ if (yych <= '\f') {
408
+ if (yych == '\n')
409
+ goto yy29;
410
+ goto yy30;
411
+ } else {
412
+ if (yych <= '\r')
413
+ goto yy29;
414
+ if (yych <= 0x7F)
415
+ goto yy30;
416
+ if (yych <= 0xC1)
417
+ goto yy29;
418
+ }
419
+ } else {
420
+ if (yych <= 0xEF) {
421
+ if (yych <= 0xE0)
422
+ goto yy38;
423
+ if (yych == 0xED)
424
+ goto yy40;
425
+ goto yy39;
426
+ } else {
427
+ if (yych <= 0xF0)
428
+ goto yy41;
429
+ if (yych <= 0xF3)
430
+ goto yy42;
431
+ if (yych <= 0xF4)
432
+ goto yy43;
433
+ goto yy29;
434
+ }
435
+ }
436
+ yy36:
437
+ yych = *++p;
438
+ if (yych <= 0x7F)
439
+ goto yy37;
440
+ if (yych <= 0xBF)
441
+ goto yy30;
442
+ yy37:
443
+ p = marker;
444
+ goto yy29;
445
+ yy38:
446
+ yych = *++p;
447
+ if (yych <= 0x9F)
448
+ goto yy37;
449
+ if (yych <= 0xBF)
450
+ goto yy36;
451
+ goto yy37;
452
+ yy39:
453
+ yych = *++p;
454
+ if (yych <= 0x7F)
455
+ goto yy37;
456
+ if (yych <= 0xBF)
457
+ goto yy36;
458
+ goto yy37;
459
+ yy40:
460
+ yych = *++p;
461
+ if (yych <= 0x7F)
462
+ goto yy37;
463
+ if (yych <= 0x9F)
464
+ goto yy36;
465
+ goto yy37;
466
+ yy41:
467
+ yych = *++p;
468
+ if (yych <= 0x8F)
469
+ goto yy37;
470
+ if (yych <= 0xBF)
471
+ goto yy39;
472
+ goto yy37;
473
+ yy42:
474
+ yych = *++p;
475
+ if (yych <= 0x7F)
476
+ goto yy37;
477
+ if (yych <= 0xBF)
478
+ goto yy39;
479
+ goto yy37;
480
+ yy43:
481
+ yych = *++p;
482
+ if (yych <= 0x7F)
483
+ goto yy37;
484
+ if (yych <= 0x8F)
485
+ goto yy39;
486
+ goto yy37;
487
+ }
488
+ }
489
+
490
+ bufsize_t _scan_table_cell_end(const unsigned char *p) {
491
+ const unsigned char *marker = NULL;
492
+ const unsigned char *start = p;
493
+
494
+ {
495
+ unsigned char yych;
496
+ unsigned int yyaccept = 0;
497
+ static const unsigned char yybm[] = {
498
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 0, 128, 128, 0, 0, 0, 0, 0, 0, 0,
499
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 0, 0, 0, 0, 0, 0, 0,
500
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
501
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
502
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
503
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
504
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
505
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
506
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
507
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
508
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
509
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
510
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
511
+ };
512
+ yych = *(marker = p);
513
+ if (yych <= 0xDF) {
514
+ if (yych <= '{') {
515
+ if (yych != '\n')
516
+ goto yy47;
517
+ } else {
518
+ if (yych <= '|')
519
+ goto yy48;
520
+ if (yych <= 0x7F)
521
+ goto yy47;
522
+ if (yych >= 0xC2)
523
+ goto yy51;
524
+ }
525
+ } else {
526
+ if (yych <= 0xEF) {
527
+ if (yych <= 0xE0)
528
+ goto yy53;
529
+ if (yych == 0xED)
530
+ goto yy55;
531
+ goto yy54;
532
+ } else {
533
+ if (yych <= 0xF0)
534
+ goto yy56;
535
+ if (yych <= 0xF3)
536
+ goto yy57;
537
+ if (yych <= 0xF4)
538
+ goto yy58;
539
+ }
540
+ }
541
+ yy46 : { return 0; }
542
+ yy47:
543
+ ++p;
544
+ goto yy46;
545
+ yy48:
546
+ yyaccept = 1;
547
+ yych = *(marker = ++p);
548
+ if (yybm[0 + yych] & 128) {
549
+ goto yy48;
550
+ }
551
+ if (yych <= 0x08)
552
+ goto yy50;
553
+ if (yych <= '\n')
554
+ goto yy59;
555
+ if (yych <= '\r')
556
+ goto yy60;
557
+ yy50 : { return (bufsize_t)(p - start); }
558
+ yy51:
559
+ yych = *++p;
560
+ if (yych <= 0x7F)
561
+ goto yy52;
562
+ if (yych <= 0xBF)
563
+ goto yy47;
564
+ yy52:
565
+ p = marker;
566
+ if (yyaccept == 0) {
567
+ goto yy46;
568
+ } else {
569
+ goto yy50;
570
+ }
571
+ yy53:
572
+ yych = *++p;
573
+ if (yych <= 0x9F)
574
+ goto yy52;
575
+ if (yych <= 0xBF)
576
+ goto yy51;
577
+ goto yy52;
578
+ yy54:
579
+ yych = *++p;
580
+ if (yych <= 0x7F)
581
+ goto yy52;
582
+ if (yych <= 0xBF)
583
+ goto yy51;
584
+ goto yy52;
585
+ yy55:
586
+ yych = *++p;
587
+ if (yych <= 0x7F)
588
+ goto yy52;
589
+ if (yych <= 0x9F)
590
+ goto yy51;
591
+ goto yy52;
592
+ yy56:
593
+ yych = *++p;
594
+ if (yych <= 0x8F)
595
+ goto yy52;
596
+ if (yych <= 0xBF)
597
+ goto yy54;
598
+ goto yy52;
599
+ yy57:
600
+ yych = *++p;
601
+ if (yych <= 0x7F)
602
+ goto yy52;
603
+ if (yych <= 0xBF)
604
+ goto yy54;
605
+ goto yy52;
606
+ yy58:
607
+ yych = *++p;
608
+ if (yych <= 0x7F)
609
+ goto yy52;
610
+ if (yych <= 0x8F)
611
+ goto yy54;
612
+ goto yy52;
613
+ yy59:
614
+ ++p;
615
+ goto yy50;
616
+ yy60:
617
+ yych = *++p;
618
+ if (yych == '\n')
619
+ goto yy59;
620
+ goto yy52;
621
+ }
622
+ }
623
+
624
+ bufsize_t _scan_table_row_end(const unsigned char *p) {
625
+ const unsigned char *marker = NULL;
626
+ const unsigned char *start = p;
627
+
628
+ {
629
+ unsigned char yych;
630
+ static const unsigned char yybm[] = {
631
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 0, 128, 128, 0, 0, 0, 0, 0, 0, 0,
632
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 0, 0, 0, 0, 0, 0, 0,
633
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
634
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
635
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
636
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
637
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
638
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
639
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
640
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
641
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
642
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
643
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
644
+ };
645
+ yych = *(marker = p);
646
+ if (yych <= 0xC1) {
647
+ if (yych <= '\f') {
648
+ if (yych <= 0x08)
649
+ goto yy64;
650
+ if (yych == '\n')
651
+ goto yy66;
652
+ goto yy65;
653
+ } else {
654
+ if (yych <= 0x1F) {
655
+ if (yych <= '\r')
656
+ goto yy68;
657
+ goto yy64;
658
+ } else {
659
+ if (yych <= ' ')
660
+ goto yy65;
661
+ if (yych <= 0x7F)
662
+ goto yy64;
663
+ }
664
+ }
665
+ } else {
666
+ if (yych <= 0xED) {
667
+ if (yych <= 0xDF)
668
+ goto yy69;
669
+ if (yych <= 0xE0)
670
+ goto yy71;
671
+ if (yych <= 0xEC)
672
+ goto yy72;
673
+ goto yy73;
674
+ } else {
675
+ if (yych <= 0xF0) {
676
+ if (yych <= 0xEF)
677
+ goto yy72;
678
+ goto yy74;
679
+ } else {
680
+ if (yych <= 0xF3)
681
+ goto yy75;
682
+ if (yych <= 0xF4)
683
+ goto yy76;
684
+ }
685
+ }
686
+ }
687
+ yy63 : { return 0; }
688
+ yy64:
689
+ ++p;
690
+ goto yy63;
691
+ yy65:
692
+ yych = *(marker = ++p);
693
+ if (yych <= 0x08)
694
+ goto yy63;
695
+ if (yych <= '\r')
696
+ goto yy78;
697
+ if (yych == ' ')
698
+ goto yy78;
699
+ goto yy63;
700
+ yy66:
701
+ ++p;
702
+ { return (bufsize_t)(p - start); }
703
+ yy68:
704
+ yych = *++p;
705
+ if (yych == '\n')
706
+ goto yy66;
707
+ goto yy63;
708
+ yy69:
709
+ yych = *++p;
710
+ if (yych <= 0x7F)
711
+ goto yy70;
712
+ if (yych <= 0xBF)
713
+ goto yy64;
714
+ yy70:
715
+ p = marker;
716
+ goto yy63;
717
+ yy71:
718
+ yych = *++p;
719
+ if (yych <= 0x9F)
720
+ goto yy70;
721
+ if (yych <= 0xBF)
722
+ goto yy69;
723
+ goto yy70;
724
+ yy72:
725
+ yych = *++p;
726
+ if (yych <= 0x7F)
727
+ goto yy70;
728
+ if (yych <= 0xBF)
729
+ goto yy69;
730
+ goto yy70;
731
+ yy73:
732
+ yych = *++p;
733
+ if (yych <= 0x7F)
734
+ goto yy70;
735
+ if (yych <= 0x9F)
736
+ goto yy69;
737
+ goto yy70;
738
+ yy74:
739
+ yych = *++p;
740
+ if (yych <= 0x8F)
741
+ goto yy70;
742
+ if (yych <= 0xBF)
743
+ goto yy72;
744
+ goto yy70;
745
+ yy75:
746
+ yych = *++p;
747
+ if (yych <= 0x7F)
748
+ goto yy70;
749
+ if (yych <= 0xBF)
750
+ goto yy72;
751
+ goto yy70;
752
+ yy76:
753
+ yych = *++p;
754
+ if (yych <= 0x7F)
755
+ goto yy70;
756
+ if (yych <= 0x8F)
757
+ goto yy72;
758
+ goto yy70;
759
+ yy77:
760
+ yych = *++p;
761
+ yy78:
762
+ if (yybm[0 + yych] & 128) {
763
+ goto yy77;
764
+ }
765
+ if (yych <= 0x08)
766
+ goto yy70;
767
+ if (yych <= '\n')
768
+ goto yy66;
769
+ if (yych >= 0x0E)
770
+ goto yy70;
771
+ yych = *++p;
772
+ if (yych == '\n')
773
+ goto yy66;
774
+ goto yy70;
775
+ }
776
+ }
777
+ bufsize_t _scan_tasklist(const unsigned char *p) {
778
+ const unsigned char *marker = NULL;
779
+ const unsigned char *start = p;
780
+
781
+ {
782
+ unsigned char yych;
783
+ static const unsigned char yybm[] = {
784
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0, 64, 64, 0, 0, 0,
785
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
786
+ 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
787
+ 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 0, 0, 0, 0, 0, 0,
788
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
789
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
790
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
791
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
792
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
793
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
794
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
795
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
796
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
797
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
798
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
799
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
800
+ };
801
+ yych = *(marker = p);
802
+ if (yych <= '/') {
803
+ if (yych <= 0x1F) {
804
+ if (yych <= '\t') {
805
+ if (yych <= 0x08)
806
+ goto yy83;
807
+ goto yy84;
808
+ } else {
809
+ if (yych <= '\n')
810
+ goto yy82;
811
+ if (yych <= '\f')
812
+ goto yy84;
813
+ goto yy83;
814
+ }
815
+ } else {
816
+ if (yych <= '+') {
817
+ if (yych <= ' ')
818
+ goto yy84;
819
+ if (yych <= ')')
820
+ goto yy83;
821
+ goto yy85;
822
+ } else {
823
+ if (yych == '-')
824
+ goto yy85;
825
+ goto yy83;
826
+ }
827
+ }
828
+ } else {
829
+ if (yych <= 0xEC) {
830
+ if (yych <= 0xC1) {
831
+ if (yych <= '9')
832
+ goto yy86;
833
+ if (yych <= 0x7F)
834
+ goto yy83;
835
+ } else {
836
+ if (yych <= 0xDF)
837
+ goto yy87;
838
+ if (yych <= 0xE0)
839
+ goto yy89;
840
+ goto yy90;
841
+ }
842
+ } else {
843
+ if (yych <= 0xF0) {
844
+ if (yych <= 0xED)
845
+ goto yy91;
846
+ if (yych <= 0xEF)
847
+ goto yy90;
848
+ goto yy92;
849
+ } else {
850
+ if (yych <= 0xF3)
851
+ goto yy93;
852
+ if (yych <= 0xF4)
853
+ goto yy94;
854
+ }
855
+ }
856
+ }
857
+ yy82 : { return 0; }
858
+ yy83:
859
+ ++p;
860
+ goto yy82;
861
+ yy84:
862
+ yych = *(marker = ++p);
863
+ if (yybm[0 + yych] & 64) {
864
+ goto yy95;
865
+ }
866
+ if (yych <= ',') {
867
+ if (yych <= ')')
868
+ goto yy82;
869
+ if (yych <= '+')
870
+ goto yy97;
871
+ goto yy82;
872
+ } else {
873
+ if (yych <= '-')
874
+ goto yy97;
875
+ if (yych <= '/')
876
+ goto yy82;
877
+ if (yych <= '9')
878
+ goto yy98;
879
+ goto yy82;
880
+ }
881
+ yy85:
882
+ yych = *(marker = ++p);
883
+ if (yych <= '\n') {
884
+ if (yych == '\t')
885
+ goto yy99;
886
+ goto yy82;
887
+ } else {
888
+ if (yych <= '\f')
889
+ goto yy99;
890
+ if (yych == ' ')
891
+ goto yy99;
892
+ goto yy82;
893
+ }
894
+ yy86:
895
+ yych = *(marker = ++p);
896
+ if (yych <= 0x1F) {
897
+ if (yych <= '\t') {
898
+ if (yych <= 0x08)
899
+ goto yy102;
900
+ goto yy97;
901
+ } else {
902
+ if (yych <= '\n')
903
+ goto yy82;
904
+ if (yych <= '\f')
905
+ goto yy97;
906
+ goto yy102;
907
+ }
908
+ } else {
909
+ if (yych <= 0x7F) {
910
+ if (yych <= ' ')
911
+ goto yy97;
912
+ goto yy102;
913
+ } else {
914
+ if (yych <= 0xC1)
915
+ goto yy82;
916
+ if (yych <= 0xF4)
917
+ goto yy102;
918
+ goto yy82;
919
+ }
920
+ }
921
+ yy87:
922
+ yych = *++p;
923
+ if (yych <= 0x7F)
924
+ goto yy88;
925
+ if (yych <= 0xBF)
926
+ goto yy83;
927
+ yy88:
928
+ p = marker;
929
+ goto yy82;
930
+ yy89:
931
+ yych = *++p;
932
+ if (yych <= 0x9F)
933
+ goto yy88;
934
+ if (yych <= 0xBF)
935
+ goto yy87;
936
+ goto yy88;
937
+ yy90:
938
+ yych = *++p;
939
+ if (yych <= 0x7F)
940
+ goto yy88;
941
+ if (yych <= 0xBF)
942
+ goto yy87;
943
+ goto yy88;
944
+ yy91:
945
+ yych = *++p;
946
+ if (yych <= 0x7F)
947
+ goto yy88;
948
+ if (yych <= 0x9F)
949
+ goto yy87;
950
+ goto yy88;
951
+ yy92:
952
+ yych = *++p;
953
+ if (yych <= 0x8F)
954
+ goto yy88;
955
+ if (yych <= 0xBF)
956
+ goto yy90;
957
+ goto yy88;
958
+ yy93:
959
+ yych = *++p;
960
+ if (yych <= 0x7F)
961
+ goto yy88;
962
+ if (yych <= 0xBF)
963
+ goto yy90;
964
+ goto yy88;
965
+ yy94:
966
+ yych = *++p;
967
+ if (yych <= 0x7F)
968
+ goto yy88;
969
+ if (yych <= 0x8F)
970
+ goto yy90;
971
+ goto yy88;
972
+ yy95:
973
+ yych = *++p;
974
+ if (yybm[0 + yych] & 64) {
975
+ goto yy95;
976
+ }
977
+ if (yych <= ',') {
978
+ if (yych <= ')')
979
+ goto yy88;
980
+ if (yych >= ',')
981
+ goto yy88;
982
+ } else {
983
+ if (yych <= '-')
984
+ goto yy97;
985
+ if (yych <= '/')
986
+ goto yy88;
987
+ if (yych <= '9')
988
+ goto yy98;
989
+ goto yy88;
990
+ }
991
+ yy97:
992
+ yych = *++p;
993
+ if (yych == '[')
994
+ goto yy88;
995
+ goto yy100;
996
+ yy98:
997
+ yych = *++p;
998
+ if (yych <= '\n') {
999
+ if (yych == '\t')
1000
+ goto yy97;
1001
+ goto yy102;
1002
+ } else {
1003
+ if (yych <= '\f')
1004
+ goto yy97;
1005
+ if (yych == ' ')
1006
+ goto yy97;
1007
+ goto yy102;
1008
+ }
1009
+ yy99:
1010
+ yych = *++p;
1011
+ yy100:
1012
+ if (yych <= '\f') {
1013
+ if (yych == '\t')
1014
+ goto yy99;
1015
+ if (yych <= '\n')
1016
+ goto yy88;
1017
+ goto yy99;
1018
+ } else {
1019
+ if (yych <= ' ') {
1020
+ if (yych <= 0x1F)
1021
+ goto yy88;
1022
+ goto yy99;
1023
+ } else {
1024
+ if (yych == '[')
1025
+ goto yy110;
1026
+ goto yy88;
1027
+ }
1028
+ }
1029
+ yy101:
1030
+ yych = *++p;
1031
+ yy102:
1032
+ if (yybm[0 + yych] & 128) {
1033
+ goto yy101;
1034
+ }
1035
+ if (yych <= 0xC1) {
1036
+ if (yych <= '\f') {
1037
+ if (yych <= 0x08)
1038
+ goto yy97;
1039
+ if (yych == '\n')
1040
+ goto yy88;
1041
+ goto yy99;
1042
+ } else {
1043
+ if (yych == ' ')
1044
+ goto yy99;
1045
+ if (yych <= 0x7F)
1046
+ goto yy97;
1047
+ goto yy88;
1048
+ }
1049
+ } else {
1050
+ if (yych <= 0xED) {
1051
+ if (yych <= 0xDF)
1052
+ goto yy103;
1053
+ if (yych <= 0xE0)
1054
+ goto yy104;
1055
+ if (yych <= 0xEC)
1056
+ goto yy105;
1057
+ goto yy106;
1058
+ } else {
1059
+ if (yych <= 0xF0) {
1060
+ if (yych <= 0xEF)
1061
+ goto yy105;
1062
+ goto yy107;
1063
+ } else {
1064
+ if (yych <= 0xF3)
1065
+ goto yy108;
1066
+ if (yych <= 0xF4)
1067
+ goto yy109;
1068
+ goto yy88;
1069
+ }
1070
+ }
1071
+ }
1072
+ yy103:
1073
+ yych = *++p;
1074
+ if (yych <= 0x7F)
1075
+ goto yy88;
1076
+ if (yych <= 0xBF)
1077
+ goto yy97;
1078
+ goto yy88;
1079
+ yy104:
1080
+ yych = *++p;
1081
+ if (yych <= 0x9F)
1082
+ goto yy88;
1083
+ if (yych <= 0xBF)
1084
+ goto yy103;
1085
+ goto yy88;
1086
+ yy105:
1087
+ yych = *++p;
1088
+ if (yych <= 0x7F)
1089
+ goto yy88;
1090
+ if (yych <= 0xBF)
1091
+ goto yy103;
1092
+ goto yy88;
1093
+ yy106:
1094
+ yych = *++p;
1095
+ if (yych <= 0x7F)
1096
+ goto yy88;
1097
+ if (yych <= 0x9F)
1098
+ goto yy103;
1099
+ goto yy88;
1100
+ yy107:
1101
+ yych = *++p;
1102
+ if (yych <= 0x8F)
1103
+ goto yy88;
1104
+ if (yych <= 0xBF)
1105
+ goto yy105;
1106
+ goto yy88;
1107
+ yy108:
1108
+ yych = *++p;
1109
+ if (yych <= 0x7F)
1110
+ goto yy88;
1111
+ if (yych <= 0xBF)
1112
+ goto yy105;
1113
+ goto yy88;
1114
+ yy109:
1115
+ yych = *++p;
1116
+ if (yych <= 0x7F)
1117
+ goto yy88;
1118
+ if (yych <= 0x8F)
1119
+ goto yy105;
1120
+ goto yy88;
1121
+ yy110:
1122
+ yych = *++p;
1123
+ if (yych <= 'W') {
1124
+ if (yych != ' ')
1125
+ goto yy88;
1126
+ } else {
1127
+ if (yych <= 'X')
1128
+ goto yy111;
1129
+ if (yych != 'x')
1130
+ goto yy88;
1131
+ }
1132
+ yy111:
1133
+ yych = *++p;
1134
+ if (yych != ']')
1135
+ goto yy88;
1136
+ yych = *++p;
1137
+ if (yych <= '\n') {
1138
+ if (yych != '\t')
1139
+ goto yy88;
1140
+ } else {
1141
+ if (yych <= '\f')
1142
+ goto yy113;
1143
+ if (yych != ' ')
1144
+ goto yy88;
1145
+ }
1146
+ yy113:
1147
+ yych = *++p;
1148
+ if (yych <= '\n') {
1149
+ if (yych == '\t')
1150
+ goto yy113;
1151
+ } else {
1152
+ if (yych <= '\f')
1153
+ goto yy113;
1154
+ if (yych == ' ')
1155
+ goto yy113;
1156
+ }
1157
+ { return (bufsize_t)(p - start); }
1158
+ }
1159
+ }