This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
was RE: Perl_die() / Perl_croak()
[perl5.git] / regnodes.h
CommitLineData
37442d52
RGS
1/* -*- buffer-read-only: t -*-
2 !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
885f9e59 3 This file is built by regcomp.pl from regcomp.sym.
d09b2d29
IZ
4 Any changes made here will be lost!
5*/
6
6bda09f9
YO
7/* Regops and State definitions */
8
e2e6a0f1
YO
9#define REGNODE_MAX 82
10#define REGMATCH_STATE_MAX 118
03363afd 11
f9f4320a
YO
12#define END 0 /* 0000 End of program. */
13#define SUCCEED 1 /* 0x01 Return from a subroutine, basically. */
14#define BOL 2 /* 0x02 Match "" at beginning of line. */
15#define MBOL 3 /* 0x03 Same, assuming multiline. */
16#define SBOL 4 /* 0x04 Same, assuming singleline. */
17#define EOS 5 /* 0x05 Match "" at end of string. */
18#define EOL 6 /* 0x06 Match "" at end of line. */
19#define MEOL 7 /* 0x07 Same, assuming multiline. */
20#define SEOL 8 /* 0x08 Same, assuming singleline. */
21#define BOUND 9 /* 0x09 Match "" at any word boundary */
22#define BOUNDL 10 /* 0x0a Match "" at any word boundary */
23#define NBOUND 11 /* 0x0b Match "" at any word non-boundary */
24#define NBOUNDL 12 /* 0x0c Match "" at any word non-boundary */
25#define GPOS 13 /* 0x0d Matches where last m//g left off. */
26#define REG_ANY 14 /* 0x0e Match any one character (except newline). */
27#define SANY 15 /* 0x0f Match any one character. */
28#define CANY 16 /* 0x10 Match any one byte. */
29#define ANYOF 17 /* 0x11 Match character in (or not in) this class. */
30#define ALNUM 18 /* 0x12 Match any alphanumeric character */
31#define ALNUML 19 /* 0x13 Match any alphanumeric char in locale */
32#define NALNUM 20 /* 0x14 Match any non-alphanumeric character */
33#define NALNUML 21 /* 0x15 Match any non-alphanumeric char in locale */
34#define SPACE 22 /* 0x16 Match any whitespace character */
35#define SPACEL 23 /* 0x17 Match any whitespace char in locale */
36#define NSPACE 24 /* 0x18 Match any non-whitespace character */
37#define NSPACEL 25 /* 0x19 Match any non-whitespace char in locale */
38#define DIGIT 26 /* 0x1a Match any numeric character */
39#define DIGITL 27 /* 0x1b Match any numeric character in locale */
40#define NDIGIT 28 /* 0x1c Match any non-numeric character */
41#define NDIGITL 29 /* 0x1d Match any non-numeric character in locale */
42#define CLUMP 30 /* 0x1e Match any combining character sequence */
43#define BRANCH 31 /* 0x1f Match this alternative, or the next... */
44#define BACK 32 /* 0x20 Match "", "next" ptr points backward. */
45#define EXACT 33 /* 0x21 Match this string (preceded by length). */
46#define EXACTF 34 /* 0x22 Match this string, folded (prec. by length). */
47#define EXACTFL 35 /* 0x23 Match this string, folded in locale (w/len). */
48#define NOTHING 36 /* 0x24 Match empty string. */
49#define TAIL 37 /* 0x25 Match empty string. Can jump here from outside. */
50#define STAR 38 /* 0x26 Match this (simple) thing 0 or more times. */
51#define PLUS 39 /* 0x27 Match this (simple) thing 1 or more times. */
52#define CURLY 40 /* 0x28 Match this simple thing {n,m} times. */
40d049e4
YO
53#define CURLYN 41 /* 0x29 Capture next-after-this simple thing */
54#define CURLYM 42 /* 0x2a Capture this medium-complex thing {n,m} times. */
f9f4320a
YO
55#define CURLYX 43 /* 0x2b Match this complex thing {n,m} times. */
56#define WHILEM 44 /* 0x2c Do curly processing and see if rest matches. */
57#define OPEN 45 /* 0x2d Mark this point in input as start of */
58#define CLOSE 46 /* 0x2e Analogous to OPEN. */
59#define REF 47 /* 0x2f Match some already matched string */
60#define REFF 48 /* 0x30 Match already matched string, folded */
61#define REFFL 49 /* 0x31 Match already matched string, folded in loc. */
62#define IFMATCH 50 /* 0x32 Succeeds if the following matches. */
63#define UNLESSM 51 /* 0x33 Fails if the following matches. */
64#define SUSPEND 52 /* 0x34 "Independent" sub-RE. */
65#define IFTHEN 53 /* 0x35 Switch, should be preceeded by switcher . */
66#define GROUPP 54 /* 0x36 Whether the group matched. */
67#define LONGJMP 55 /* 0x37 Jump far away. */
68#define BRANCHJ 56 /* 0x38 BRANCH with long offset. */
69#define EVAL 57 /* 0x39 Execute some Perl code. */
70#define MINMOD 58 /* 0x3a Next operator is not greedy. */
71#define LOGICAL 59 /* 0x3b Next opcode should set the flag only. */
72#define RENUM 60 /* 0x3c Group with independently numbered parens. */
73#define TRIE 61 /* 0x3d Match many EXACT(FL?)? at once. flags==type */
74#define TRIEC 62 /* 0x3e Same as TRIE, but with embedded charclass data */
75#define AHOCORASICK 63 /* 0x3f Aho Corasick stclass. flags==type */
76#define AHOCORASICKC 64 /* 0x40 Same as AHOCORASICK, but with embedded charclass data */
1a147d38
YO
77#define GOSUB 65 /* 0x41 recurse to paren arg1 at (signed) ofs arg2 */
78#define GOSTART 66 /* 0x42 recurse to start of pattern */
81714fb9
YO
79#define NREF 67 /* 0x43 Match some already matched string */
80#define NREFF 68 /* 0x44 Match already matched string, folded */
81#define NREFFL 69 /* 0x45 Match already matched string, folded in loc. */
0a4db386 82#define NGROUPP 70 /* 0x46 Whether the group matched. */
1a147d38 83#define INSUBP 71 /* 0x47 Whether we are in a specific recurse. */
0a4db386 84#define DEFINEP 72 /* 0x48 Never execute directly. */
e2e6a0f1
YO
85#define ENDLIKE 73 /* 0x49 Used only for the type field of verbs */
86#define OPFAIL 74 /* 0x4a Same as (?!) */
87#define ACCEPT 75 /* 0x4b Accepts the current matched string. */
88#define VERB 76 /* 0x4c no-sv 1 Used only for the type field of verbs */
89#define NOMATCH 77 /* 0x4d Pattern fails at this startpoint if no-backtracking through this */
90#define MARKPOINT 78 /* 0x4e Push the current location for rollback by cut. */
91#define CUT 79 /* 0x4f On failure cut the string at the mark. */
92#define COMMIT 80 /* 0x50 Pattern fails outright if backtracking through this */
93#define OPTIMIZED 81 /* 0x51 Placeholder for dump. */
94#define PSEUDO 82 /* 0x52 Pseudo opcode for internal use. */
03363afd 95 /* ------------ States ------------- */
24b23f37
YO
96#define TRIE_next (REGNODE_MAX + 1) /* state for TRIE */
97#define TRIE_next_fail (REGNODE_MAX + 2) /* state for TRIE */
98#define EVAL_AB (REGNODE_MAX + 3) /* state for EVAL */
99#define EVAL_AB_fail (REGNODE_MAX + 4) /* state for EVAL */
100#define CURLYX_end (REGNODE_MAX + 5) /* state for CURLYX */
101#define CURLYX_end_fail (REGNODE_MAX + 6) /* state for CURLYX */
102#define WHILEM_A_pre (REGNODE_MAX + 7) /* state for WHILEM */
103#define WHILEM_A_pre_fail (REGNODE_MAX + 8) /* state for WHILEM */
104#define WHILEM_A_min (REGNODE_MAX + 9) /* state for WHILEM */
105#define WHILEM_A_min_fail (REGNODE_MAX + 10) /* state for WHILEM */
106#define WHILEM_A_max (REGNODE_MAX + 11) /* state for WHILEM */
107#define WHILEM_A_max_fail (REGNODE_MAX + 12) /* state for WHILEM */
108#define WHILEM_B_min (REGNODE_MAX + 13) /* state for WHILEM */
109#define WHILEM_B_min_fail (REGNODE_MAX + 14) /* state for WHILEM */
110#define WHILEM_B_max (REGNODE_MAX + 15) /* state for WHILEM */
111#define WHILEM_B_max_fail (REGNODE_MAX + 16) /* state for WHILEM */
112#define BRANCH_next (REGNODE_MAX + 17) /* state for BRANCH */
113#define BRANCH_next_fail (REGNODE_MAX + 18) /* state for BRANCH */
114#define CURLYM_A (REGNODE_MAX + 19) /* state for CURLYM */
115#define CURLYM_A_fail (REGNODE_MAX + 20) /* state for CURLYM */
116#define CURLYM_B (REGNODE_MAX + 21) /* state for CURLYM */
117#define CURLYM_B_fail (REGNODE_MAX + 22) /* state for CURLYM */
118#define IFMATCH_A (REGNODE_MAX + 23) /* state for IFMATCH */
119#define IFMATCH_A_fail (REGNODE_MAX + 24) /* state for IFMATCH */
120#define CURLY_B_min_known (REGNODE_MAX + 25) /* state for CURLY */
121#define CURLY_B_min_known_fail (REGNODE_MAX + 26) /* state for CURLY */
122#define CURLY_B_min (REGNODE_MAX + 27) /* state for CURLY */
123#define CURLY_B_min_fail (REGNODE_MAX + 28) /* state for CURLY */
124#define CURLY_B_max (REGNODE_MAX + 29) /* state for CURLY */
125#define CURLY_B_max_fail (REGNODE_MAX + 30) /* state for CURLY */
126#define COMMIT_next (REGNODE_MAX + 31) /* state for COMMIT */
127#define COMMIT_next_fail (REGNODE_MAX + 32) /* state for COMMIT */
e2e6a0f1
YO
128#define MARKPOINT_next (REGNODE_MAX + 33) /* state for MARKPOINT */
129#define MARKPOINT_next_fail (REGNODE_MAX + 34) /* state for MARKPOINT */
130#define CUT_next (REGNODE_MAX + 35) /* state for CUT */
131#define CUT_next_fail (REGNODE_MAX + 36) /* state for CUT */
03363afd 132
6bda09f9 133/* PL_regkind[] What type of regop or state is this. */
d09b2d29
IZ
134
135#ifndef DOINIT
22c35a8c 136EXTCONST U8 PL_regkind[];
d09b2d29 137#else
22c35a8c 138EXTCONST U8 PL_regkind[] = {
e2e6a0f1
YO
139 END, /* END */
140 END, /* SUCCEED */
141 BOL, /* BOL */
142 BOL, /* MBOL */
143 BOL, /* SBOL */
144 EOL, /* EOS */
145 EOL, /* EOL */
146 EOL, /* MEOL */
147 EOL, /* SEOL */
148 BOUND, /* BOUND */
149 BOUND, /* BOUNDL */
150 NBOUND, /* NBOUND */
151 NBOUND, /* NBOUNDL */
152 GPOS, /* GPOS */
153 REG_ANY, /* REG_ANY */
154 REG_ANY, /* SANY */
155 REG_ANY, /* CANY */
156 ANYOF, /* ANYOF */
157 ALNUM, /* ALNUM */
158 ALNUM, /* ALNUML */
159 NALNUM, /* NALNUM */
160 NALNUM, /* NALNUML */
161 SPACE, /* SPACE */
162 SPACE, /* SPACEL */
163 NSPACE, /* NSPACE */
164 NSPACE, /* NSPACEL */
165 DIGIT, /* DIGIT */
166 DIGIT, /* DIGITL */
167 NDIGIT, /* NDIGIT */
168 NDIGIT, /* NDIGITL */
169 CLUMP, /* CLUMP */
170 BRANCH, /* BRANCH */
171 BACK, /* BACK */
172 EXACT, /* EXACT */
173 EXACT, /* EXACTF */
174 EXACT, /* EXACTFL */
175 NOTHING, /* NOTHING */
176 NOTHING, /* TAIL */
177 STAR, /* STAR */
178 PLUS, /* PLUS */
179 CURLY, /* CURLY */
180 CURLY, /* CURLYN */
181 CURLY, /* CURLYM */
182 CURLY, /* CURLYX */
183 WHILEM, /* WHILEM */
184 OPEN, /* OPEN */
185 CLOSE, /* CLOSE */
186 REF, /* REF */
187 REF, /* REFF */
188 REF, /* REFFL */
189 BRANCHJ, /* IFMATCH */
190 BRANCHJ, /* UNLESSM */
191 BRANCHJ, /* SUSPEND */
192 BRANCHJ, /* IFTHEN */
193 GROUPP, /* GROUPP */
194 LONGJMP, /* LONGJMP */
195 BRANCHJ, /* BRANCHJ */
196 EVAL, /* EVAL */
197 MINMOD, /* MINMOD */
198 LOGICAL, /* LOGICAL */
199 BRANCHJ, /* RENUM */
200 TRIE, /* TRIE */
201 TRIE, /* TRIEC */
202 TRIE, /* AHOCORASICK */
203 TRIE, /* AHOCORASICKC */
204 GOSUB, /* GOSUB */
205 GOSTART, /* GOSTART */
206 NREF, /* NREF */
207 NREF, /* NREFF */
208 NREF, /* NREFFL */
209 NGROUPP, /* NGROUPP */
210 INSUBP, /* INSUBP */
211 DEFINEP, /* DEFINEP */
212 ENDLIKE, /* ENDLIKE */
213 ENDLIKE, /* OPFAIL */
214 ENDLIKE, /* ACCEPT */
215 VERB, /* VERB */
216 VERB, /* NOMATCH */
217 VERB, /* MARKPOINT */
218 VERB, /* CUT */
219 VERB, /* COMMIT */
220 NOTHING, /* OPTIMIZED */
221 PSEUDO, /* PSEUDO */
03363afd 222 /* ------------ States ------------- */
e2e6a0f1
YO
223 TRIE, /* TRIE_next */
224 TRIE, /* TRIE_next_fail */
225 EVAL, /* EVAL_AB */
226 EVAL, /* EVAL_AB_fail */
227 CURLYX, /* CURLYX_end */
228 CURLYX, /* CURLYX_end_fail */
229 WHILEM, /* WHILEM_A_pre */
230 WHILEM, /* WHILEM_A_pre_fail */
231 WHILEM, /* WHILEM_A_min */
232 WHILEM, /* WHILEM_A_min_fail */
233 WHILEM, /* WHILEM_A_max */
234 WHILEM, /* WHILEM_A_max_fail */
235 WHILEM, /* WHILEM_B_min */
236 WHILEM, /* WHILEM_B_min_fail */
237 WHILEM, /* WHILEM_B_max */
238 WHILEM, /* WHILEM_B_max_fail */
239 BRANCH, /* BRANCH_next */
240 BRANCH, /* BRANCH_next_fail */
241 CURLYM, /* CURLYM_A */
242 CURLYM, /* CURLYM_A_fail */
243 CURLYM, /* CURLYM_B */
244 CURLYM, /* CURLYM_B_fail */
245 IFMATCH, /* IFMATCH_A */
246 IFMATCH, /* IFMATCH_A_fail */
247 CURLY, /* CURLY_B_min_known */
248 CURLY, /* CURLY_B_min_known_fail */
249 CURLY, /* CURLY_B_min */
250 CURLY, /* CURLY_B_min_fail */
251 CURLY, /* CURLY_B_max */
252 CURLY, /* CURLY_B_max_fail */
253 COMMIT, /* COMMIT_next */
254 COMMIT, /* COMMIT_next_fail */
255 MARKPOINT, /* MARKPOINT_next */
256 MARKPOINT, /* MARKPOINT_next_fail */
257 CUT, /* CUT_next */
258 CUT, /* CUT_next_fail */
d09b2d29
IZ
259};
260#endif
261
6bda09f9 262/* regarglen[] - How large is the argument part of the node (in regnodes) */
d09b2d29
IZ
263
264#ifdef REG_COMP_C
29de9391 265static const U8 regarglen[] = {
03363afd
YO
266 0, /* END */
267 0, /* SUCCEED */
268 0, /* BOL */
269 0, /* MBOL */
270 0, /* SBOL */
271 0, /* EOS */
272 0, /* EOL */
273 0, /* MEOL */
274 0, /* SEOL */
275 0, /* BOUND */
276 0, /* BOUNDL */
277 0, /* NBOUND */
278 0, /* NBOUNDL */
279 0, /* GPOS */
280 0, /* REG_ANY */
281 0, /* SANY */
282 0, /* CANY */
283 0, /* ANYOF */
284 0, /* ALNUM */
285 0, /* ALNUML */
286 0, /* NALNUM */
287 0, /* NALNUML */
288 0, /* SPACE */
289 0, /* SPACEL */
290 0, /* NSPACE */
291 0, /* NSPACEL */
292 0, /* DIGIT */
293 0, /* DIGITL */
294 0, /* NDIGIT */
295 0, /* NDIGITL */
296 0, /* CLUMP */
297 0, /* BRANCH */
298 0, /* BACK */
299 0, /* EXACT */
300 0, /* EXACTF */
301 0, /* EXACTFL */
302 0, /* NOTHING */
303 0, /* TAIL */
304 0, /* STAR */
305 0, /* PLUS */
306 EXTRA_SIZE(struct regnode_2), /* CURLY */
307 EXTRA_SIZE(struct regnode_2), /* CURLYN */
308 EXTRA_SIZE(struct regnode_2), /* CURLYM */
309 EXTRA_SIZE(struct regnode_2), /* CURLYX */
310 0, /* WHILEM */
311 EXTRA_SIZE(struct regnode_1), /* OPEN */
312 EXTRA_SIZE(struct regnode_1), /* CLOSE */
313 EXTRA_SIZE(struct regnode_1), /* REF */
314 EXTRA_SIZE(struct regnode_1), /* REFF */
315 EXTRA_SIZE(struct regnode_1), /* REFFL */
316 EXTRA_SIZE(struct regnode_1), /* IFMATCH */
317 EXTRA_SIZE(struct regnode_1), /* UNLESSM */
318 EXTRA_SIZE(struct regnode_1), /* SUSPEND */
319 EXTRA_SIZE(struct regnode_1), /* IFTHEN */
320 EXTRA_SIZE(struct regnode_1), /* GROUPP */
321 EXTRA_SIZE(struct regnode_1), /* LONGJMP */
322 EXTRA_SIZE(struct regnode_1), /* BRANCHJ */
323 EXTRA_SIZE(struct regnode_1), /* EVAL */
324 0, /* MINMOD */
325 0, /* LOGICAL */
326 EXTRA_SIZE(struct regnode_1), /* RENUM */
327 EXTRA_SIZE(struct regnode_1), /* TRIE */
328 EXTRA_SIZE(struct regnode_charclass), /* TRIEC */
329 EXTRA_SIZE(struct regnode_1), /* AHOCORASICK */
330 EXTRA_SIZE(struct regnode_charclass), /* AHOCORASICKC */
1a147d38
YO
331 EXTRA_SIZE(struct regnode_2L), /* GOSUB */
332 0, /* GOSTART */
81714fb9
YO
333 EXTRA_SIZE(struct regnode_1), /* NREF */
334 EXTRA_SIZE(struct regnode_1), /* NREFF */
335 EXTRA_SIZE(struct regnode_1), /* NREFFL */
0a4db386 336 EXTRA_SIZE(struct regnode_1), /* NGROUPP */
1a147d38 337 EXTRA_SIZE(struct regnode_1), /* INSUBP */
0a4db386 338 EXTRA_SIZE(struct regnode_1), /* DEFINEP */
e2e6a0f1 339 0, /* ENDLIKE */
7f69552c 340 0, /* OPFAIL */
e2e6a0f1
YO
341 EXTRA_SIZE(struct regnode_1), /* ACCEPT */
342 0, /* VERB */
343 EXTRA_SIZE(struct regnode_1), /* NOMATCH */
344 EXTRA_SIZE(struct regnode_1), /* MARKPOINT */
345 EXTRA_SIZE(struct regnode_1), /* CUT */
346 EXTRA_SIZE(struct regnode_1), /* COMMIT */
03363afd
YO
347 0, /* OPTIMIZED */
348 0, /* PSEUDO */
d09b2d29
IZ
349};
350
6bda09f9
YO
351/* reg_off_by_arg[] - Which argument holds the offset to the next node */
352
29de9391 353static const char reg_off_by_arg[] = {
03363afd
YO
354 0, /* END */
355 0, /* SUCCEED */
356 0, /* BOL */
357 0, /* MBOL */
358 0, /* SBOL */
359 0, /* EOS */
360 0, /* EOL */
361 0, /* MEOL */
362 0, /* SEOL */
363 0, /* BOUND */
364 0, /* BOUNDL */
365 0, /* NBOUND */
366 0, /* NBOUNDL */
367 0, /* GPOS */
368 0, /* REG_ANY */
369 0, /* SANY */
370 0, /* CANY */
371 0, /* ANYOF */
372 0, /* ALNUM */
373 0, /* ALNUML */
374 0, /* NALNUM */
375 0, /* NALNUML */
376 0, /* SPACE */
377 0, /* SPACEL */
378 0, /* NSPACE */
379 0, /* NSPACEL */
380 0, /* DIGIT */
381 0, /* DIGITL */
382 0, /* NDIGIT */
383 0, /* NDIGITL */
384 0, /* CLUMP */
385 0, /* BRANCH */
386 0, /* BACK */
387 0, /* EXACT */
388 0, /* EXACTF */
389 0, /* EXACTFL */
390 0, /* NOTHING */
391 0, /* TAIL */
392 0, /* STAR */
393 0, /* PLUS */
394 0, /* CURLY */
395 0, /* CURLYN */
396 0, /* CURLYM */
397 0, /* CURLYX */
398 0, /* WHILEM */
399 0, /* OPEN */
400 0, /* CLOSE */
401 0, /* REF */
402 0, /* REFF */
403 0, /* REFFL */
404 2, /* IFMATCH */
405 2, /* UNLESSM */
406 1, /* SUSPEND */
407 1, /* IFTHEN */
408 0, /* GROUPP */
409 1, /* LONGJMP */
410 1, /* BRANCHJ */
411 0, /* EVAL */
412 0, /* MINMOD */
413 0, /* LOGICAL */
414 1, /* RENUM */
415 0, /* TRIE */
416 0, /* TRIEC */
417 0, /* AHOCORASICK */
418 0, /* AHOCORASICKC */
1a147d38
YO
419 0, /* GOSUB */
420 0, /* GOSTART */
81714fb9
YO
421 0, /* NREF */
422 0, /* NREFF */
423 0, /* NREFFL */
0a4db386 424 0, /* NGROUPP */
1a147d38 425 0, /* INSUBP */
0a4db386 426 0, /* DEFINEP */
e2e6a0f1 427 0, /* ENDLIKE */
7f69552c 428 0, /* OPFAIL */
e2e6a0f1
YO
429 0, /* ACCEPT */
430 0, /* VERB */
431 0, /* NOMATCH */
432 0, /* MARKPOINT */
24b23f37 433 0, /* CUT */
e2e6a0f1 434 0, /* COMMIT */
03363afd
YO
435 0, /* OPTIMIZED */
436 0, /* PSEUDO */
d09b2d29 437};
885f9e59 438
6bda09f9
YO
439/* reg_name[] - Opcode/state names in string form, for debugging */
440
885f9e59 441#ifdef DEBUGGING
6d9c9890 442const char * reg_name[] = {
03363afd
YO
443 "END", /* 0000 */
444 "SUCCEED", /* 0x01 */
445 "BOL", /* 0x02 */
446 "MBOL", /* 0x03 */
447 "SBOL", /* 0x04 */
448 "EOS", /* 0x05 */
449 "EOL", /* 0x06 */
450 "MEOL", /* 0x07 */
451 "SEOL", /* 0x08 */
452 "BOUND", /* 0x09 */
453 "BOUNDL", /* 0x0a */
454 "NBOUND", /* 0x0b */
455 "NBOUNDL", /* 0x0c */
456 "GPOS", /* 0x0d */
457 "REG_ANY", /* 0x0e */
458 "SANY", /* 0x0f */
459 "CANY", /* 0x10 */
460 "ANYOF", /* 0x11 */
461 "ALNUM", /* 0x12 */
462 "ALNUML", /* 0x13 */
463 "NALNUM", /* 0x14 */
464 "NALNUML", /* 0x15 */
465 "SPACE", /* 0x16 */
466 "SPACEL", /* 0x17 */
467 "NSPACE", /* 0x18 */
468 "NSPACEL", /* 0x19 */
469 "DIGIT", /* 0x1a */
470 "DIGITL", /* 0x1b */
471 "NDIGIT", /* 0x1c */
472 "NDIGITL", /* 0x1d */
473 "CLUMP", /* 0x1e */
474 "BRANCH", /* 0x1f */
475 "BACK", /* 0x20 */
476 "EXACT", /* 0x21 */
477 "EXACTF", /* 0x22 */
478 "EXACTFL", /* 0x23 */
479 "NOTHING", /* 0x24 */
480 "TAIL", /* 0x25 */
481 "STAR", /* 0x26 */
482 "PLUS", /* 0x27 */
483 "CURLY", /* 0x28 */
484 "CURLYN", /* 0x29 */
485 "CURLYM", /* 0x2a */
486 "CURLYX", /* 0x2b */
487 "WHILEM", /* 0x2c */
488 "OPEN", /* 0x2d */
489 "CLOSE", /* 0x2e */
490 "REF", /* 0x2f */
491 "REFF", /* 0x30 */
492 "REFFL", /* 0x31 */
493 "IFMATCH", /* 0x32 */
494 "UNLESSM", /* 0x33 */
495 "SUSPEND", /* 0x34 */
496 "IFTHEN", /* 0x35 */
497 "GROUPP", /* 0x36 */
498 "LONGJMP", /* 0x37 */
499 "BRANCHJ", /* 0x38 */
500 "EVAL", /* 0x39 */
501 "MINMOD", /* 0x3a */
502 "LOGICAL", /* 0x3b */
503 "RENUM", /* 0x3c */
504 "TRIE", /* 0x3d */
505 "TRIEC", /* 0x3e */
506 "AHOCORASICK", /* 0x3f */
507 "AHOCORASICKC", /* 0x40 */
1a147d38
YO
508 "GOSUB", /* 0x41 */
509 "GOSTART", /* 0x42 */
81714fb9
YO
510 "NREF", /* 0x43 */
511 "NREFF", /* 0x44 */
512 "NREFFL", /* 0x45 */
0a4db386 513 "NGROUPP", /* 0x46 */
1a147d38 514 "INSUBP", /* 0x47 */
0a4db386 515 "DEFINEP", /* 0x48 */
e2e6a0f1
YO
516 "ENDLIKE", /* 0x49 */
517 "OPFAIL", /* 0x4a */
518 "ACCEPT", /* 0x4b */
519 "VERB", /* 0x4c */
520 "NOMATCH", /* 0x4d */
521 "MARKPOINT", /* 0x4e */
522 "CUT", /* 0x4f */
523 "COMMIT", /* 0x50 */
524 "OPTIMIZED", /* 0x51 */
525 "PSEUDO", /* 0x52 */
03363afd 526 /* ------------ States ------------- */
24b23f37
YO
527 "TRIE_next", /* REGNODE_MAX +0x01 */
528 "TRIE_next_fail", /* REGNODE_MAX +0x02 */
529 "EVAL_AB", /* REGNODE_MAX +0x03 */
530 "EVAL_AB_fail", /* REGNODE_MAX +0x04 */
531 "CURLYX_end", /* REGNODE_MAX +0x05 */
532 "CURLYX_end_fail", /* REGNODE_MAX +0x06 */
533 "WHILEM_A_pre", /* REGNODE_MAX +0x07 */
534 "WHILEM_A_pre_fail", /* REGNODE_MAX +0x08 */
535 "WHILEM_A_min", /* REGNODE_MAX +0x09 */
536 "WHILEM_A_min_fail", /* REGNODE_MAX +0x0a */
537 "WHILEM_A_max", /* REGNODE_MAX +0x0b */
538 "WHILEM_A_max_fail", /* REGNODE_MAX +0x0c */
539 "WHILEM_B_min", /* REGNODE_MAX +0x0d */
540 "WHILEM_B_min_fail", /* REGNODE_MAX +0x0e */
541 "WHILEM_B_max", /* REGNODE_MAX +0x0f */
542 "WHILEM_B_max_fail", /* REGNODE_MAX +0x10 */
543 "BRANCH_next", /* REGNODE_MAX +0x11 */
544 "BRANCH_next_fail", /* REGNODE_MAX +0x12 */
545 "CURLYM_A", /* REGNODE_MAX +0x13 */
546 "CURLYM_A_fail", /* REGNODE_MAX +0x14 */
547 "CURLYM_B", /* REGNODE_MAX +0x15 */
548 "CURLYM_B_fail", /* REGNODE_MAX +0x16 */
549 "IFMATCH_A", /* REGNODE_MAX +0x17 */
550 "IFMATCH_A_fail", /* REGNODE_MAX +0x18 */
551 "CURLY_B_min_known", /* REGNODE_MAX +0x19 */
552 "CURLY_B_min_known_fail", /* REGNODE_MAX +0x1a */
553 "CURLY_B_min", /* REGNODE_MAX +0x1b */
554 "CURLY_B_min_fail", /* REGNODE_MAX +0x1c */
555 "CURLY_B_max", /* REGNODE_MAX +0x1d */
556 "CURLY_B_max_fail", /* REGNODE_MAX +0x1e */
557 "COMMIT_next", /* REGNODE_MAX +0x1f */
558 "COMMIT_next_fail", /* REGNODE_MAX +0x20 */
e2e6a0f1
YO
559 "MARKPOINT_next", /* REGNODE_MAX +0x21 */
560 "MARKPOINT_next_fail", /* REGNODE_MAX +0x22 */
561 "CUT_next", /* REGNODE_MAX +0x23 */
562 "CUT_next_fail", /* REGNODE_MAX +0x24 */
885f9e59 563};
885f9e59 564#endif /* DEBUGGING */
03363afd
YO
565#else
566#ifdef DEBUGGING
6d9c9890 567extern const char * reg_name[];
03363afd 568#endif
d09b2d29
IZ
569#endif /* REG_COMP_C */
570
37442d52 571/* ex: set ro: */