This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fixed Fcntl::S_IFMT() breakage introduced by change 30674 (blead 26701)
[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
e1d1eefb
YO
9#define REGNODE_MAX 89
10#define REGMATCH_STATE_MAX 129
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 */
5d458dd8 89#define PRUNE 77 /* 0x4d Pattern fails at this startpoint if no-backtracking through this */
e2e6a0f1 90#define MARKPOINT 78 /* 0x4e Push the current location for rollback by cut. */
5d458dd8 91#define SKIP 79 /* 0x4f On failure skip forward (to the mark) before retrying */
e2e6a0f1 92#define COMMIT 80 /* 0x50 Pattern fails outright if backtracking through this */
5d458dd8 93#define CUTGROUP 81 /* 0x51 On failure go to the next alternation in the group */
ee9b8eae 94#define KEEPS 82 /* 0x52 $& begins here. */
e1d1eefb
YO
95#define LNBREAK 83 /* 0x53 generic newline pattern */
96#define VERTWS 84 /* 0x54 vertical whitespace (Perl 6) */
97#define NVERTWS 85 /* 0x55 not vertical whitespace (Perl 6) */
98#define HORIZWS 86 /* 0x56 horizontal whitespace (Perl 6) */
99#define NHORIZWS 87 /* 0x57 not horizontal whitespace (Perl 6) */
100#define OPTIMIZED 88 /* 0x58 Placeholder for dump. */
101#define PSEUDO 89 /* 0x59 Pseudo opcode for internal use. */
03363afd 102 /* ------------ States ------------- */
24b23f37
YO
103#define TRIE_next (REGNODE_MAX + 1) /* state for TRIE */
104#define TRIE_next_fail (REGNODE_MAX + 2) /* state for TRIE */
105#define EVAL_AB (REGNODE_MAX + 3) /* state for EVAL */
106#define EVAL_AB_fail (REGNODE_MAX + 4) /* state for EVAL */
107#define CURLYX_end (REGNODE_MAX + 5) /* state for CURLYX */
108#define CURLYX_end_fail (REGNODE_MAX + 6) /* state for CURLYX */
109#define WHILEM_A_pre (REGNODE_MAX + 7) /* state for WHILEM */
110#define WHILEM_A_pre_fail (REGNODE_MAX + 8) /* state for WHILEM */
111#define WHILEM_A_min (REGNODE_MAX + 9) /* state for WHILEM */
112#define WHILEM_A_min_fail (REGNODE_MAX + 10) /* state for WHILEM */
113#define WHILEM_A_max (REGNODE_MAX + 11) /* state for WHILEM */
114#define WHILEM_A_max_fail (REGNODE_MAX + 12) /* state for WHILEM */
115#define WHILEM_B_min (REGNODE_MAX + 13) /* state for WHILEM */
116#define WHILEM_B_min_fail (REGNODE_MAX + 14) /* state for WHILEM */
117#define WHILEM_B_max (REGNODE_MAX + 15) /* state for WHILEM */
118#define WHILEM_B_max_fail (REGNODE_MAX + 16) /* state for WHILEM */
119#define BRANCH_next (REGNODE_MAX + 17) /* state for BRANCH */
120#define BRANCH_next_fail (REGNODE_MAX + 18) /* state for BRANCH */
121#define CURLYM_A (REGNODE_MAX + 19) /* state for CURLYM */
122#define CURLYM_A_fail (REGNODE_MAX + 20) /* state for CURLYM */
123#define CURLYM_B (REGNODE_MAX + 21) /* state for CURLYM */
124#define CURLYM_B_fail (REGNODE_MAX + 22) /* state for CURLYM */
125#define IFMATCH_A (REGNODE_MAX + 23) /* state for IFMATCH */
126#define IFMATCH_A_fail (REGNODE_MAX + 24) /* state for IFMATCH */
127#define CURLY_B_min_known (REGNODE_MAX + 25) /* state for CURLY */
128#define CURLY_B_min_known_fail (REGNODE_MAX + 26) /* state for CURLY */
129#define CURLY_B_min (REGNODE_MAX + 27) /* state for CURLY */
130#define CURLY_B_min_fail (REGNODE_MAX + 28) /* state for CURLY */
131#define CURLY_B_max (REGNODE_MAX + 29) /* state for CURLY */
132#define CURLY_B_max_fail (REGNODE_MAX + 30) /* state for CURLY */
133#define COMMIT_next (REGNODE_MAX + 31) /* state for COMMIT */
134#define COMMIT_next_fail (REGNODE_MAX + 32) /* state for COMMIT */
e2e6a0f1
YO
135#define MARKPOINT_next (REGNODE_MAX + 33) /* state for MARKPOINT */
136#define MARKPOINT_next_fail (REGNODE_MAX + 34) /* state for MARKPOINT */
5d458dd8
YO
137#define SKIP_next (REGNODE_MAX + 35) /* state for SKIP */
138#define SKIP_next_fail (REGNODE_MAX + 36) /* state for SKIP */
139#define CUTGROUP_next (REGNODE_MAX + 37) /* state for CUTGROUP */
140#define CUTGROUP_next_fail (REGNODE_MAX + 38) /* state for CUTGROUP */
ee9b8eae
YO
141#define KEEPS_next (REGNODE_MAX + 39) /* state for KEEPS */
142#define KEEPS_next_fail (REGNODE_MAX + 40) /* state for KEEPS */
03363afd 143
6bda09f9 144/* PL_regkind[] What type of regop or state is this. */
d09b2d29
IZ
145
146#ifndef DOINIT
22c35a8c 147EXTCONST U8 PL_regkind[];
d09b2d29 148#else
22c35a8c 149EXTCONST U8 PL_regkind[] = {
e2e6a0f1
YO
150 END, /* END */
151 END, /* SUCCEED */
152 BOL, /* BOL */
153 BOL, /* MBOL */
154 BOL, /* SBOL */
155 EOL, /* EOS */
156 EOL, /* EOL */
157 EOL, /* MEOL */
158 EOL, /* SEOL */
159 BOUND, /* BOUND */
160 BOUND, /* BOUNDL */
161 NBOUND, /* NBOUND */
162 NBOUND, /* NBOUNDL */
163 GPOS, /* GPOS */
164 REG_ANY, /* REG_ANY */
165 REG_ANY, /* SANY */
166 REG_ANY, /* CANY */
167 ANYOF, /* ANYOF */
168 ALNUM, /* ALNUM */
169 ALNUM, /* ALNUML */
170 NALNUM, /* NALNUM */
171 NALNUM, /* NALNUML */
172 SPACE, /* SPACE */
173 SPACE, /* SPACEL */
174 NSPACE, /* NSPACE */
175 NSPACE, /* NSPACEL */
176 DIGIT, /* DIGIT */
177 DIGIT, /* DIGITL */
178 NDIGIT, /* NDIGIT */
179 NDIGIT, /* NDIGITL */
180 CLUMP, /* CLUMP */
181 BRANCH, /* BRANCH */
182 BACK, /* BACK */
183 EXACT, /* EXACT */
184 EXACT, /* EXACTF */
185 EXACT, /* EXACTFL */
186 NOTHING, /* NOTHING */
187 NOTHING, /* TAIL */
188 STAR, /* STAR */
189 PLUS, /* PLUS */
190 CURLY, /* CURLY */
191 CURLY, /* CURLYN */
192 CURLY, /* CURLYM */
193 CURLY, /* CURLYX */
194 WHILEM, /* WHILEM */
195 OPEN, /* OPEN */
196 CLOSE, /* CLOSE */
197 REF, /* REF */
198 REF, /* REFF */
199 REF, /* REFFL */
200 BRANCHJ, /* IFMATCH */
201 BRANCHJ, /* UNLESSM */
202 BRANCHJ, /* SUSPEND */
203 BRANCHJ, /* IFTHEN */
204 GROUPP, /* GROUPP */
205 LONGJMP, /* LONGJMP */
206 BRANCHJ, /* BRANCHJ */
207 EVAL, /* EVAL */
208 MINMOD, /* MINMOD */
209 LOGICAL, /* LOGICAL */
210 BRANCHJ, /* RENUM */
211 TRIE, /* TRIE */
212 TRIE, /* TRIEC */
213 TRIE, /* AHOCORASICK */
214 TRIE, /* AHOCORASICKC */
215 GOSUB, /* GOSUB */
216 GOSTART, /* GOSTART */
ee9b8eae
YO
217 REF, /* NREF */
218 REF, /* NREFF */
219 REF, /* NREFFL */
e2e6a0f1
YO
220 NGROUPP, /* NGROUPP */
221 INSUBP, /* INSUBP */
222 DEFINEP, /* DEFINEP */
223 ENDLIKE, /* ENDLIKE */
224 ENDLIKE, /* OPFAIL */
225 ENDLIKE, /* ACCEPT */
226 VERB, /* VERB */
5d458dd8 227 VERB, /* PRUNE */
e2e6a0f1 228 VERB, /* MARKPOINT */
5d458dd8 229 VERB, /* SKIP */
e2e6a0f1 230 VERB, /* COMMIT */
5d458dd8 231 VERB, /* CUTGROUP */
ee9b8eae 232 KEEPS, /* KEEPS */
e1d1eefb
YO
233 LNBREAK, /* LNBREAK */
234 VERTWS, /* VERTWS */
235 NVERTWS, /* NVERTWS */
236 HORIZWS, /* HORIZWS */
237 NHORIZWS, /* NHORIZWS */
e2e6a0f1
YO
238 NOTHING, /* OPTIMIZED */
239 PSEUDO, /* PSEUDO */
03363afd 240 /* ------------ States ------------- */
e2e6a0f1
YO
241 TRIE, /* TRIE_next */
242 TRIE, /* TRIE_next_fail */
243 EVAL, /* EVAL_AB */
244 EVAL, /* EVAL_AB_fail */
245 CURLYX, /* CURLYX_end */
246 CURLYX, /* CURLYX_end_fail */
247 WHILEM, /* WHILEM_A_pre */
248 WHILEM, /* WHILEM_A_pre_fail */
249 WHILEM, /* WHILEM_A_min */
250 WHILEM, /* WHILEM_A_min_fail */
251 WHILEM, /* WHILEM_A_max */
252 WHILEM, /* WHILEM_A_max_fail */
253 WHILEM, /* WHILEM_B_min */
254 WHILEM, /* WHILEM_B_min_fail */
255 WHILEM, /* WHILEM_B_max */
256 WHILEM, /* WHILEM_B_max_fail */
257 BRANCH, /* BRANCH_next */
258 BRANCH, /* BRANCH_next_fail */
259 CURLYM, /* CURLYM_A */
260 CURLYM, /* CURLYM_A_fail */
261 CURLYM, /* CURLYM_B */
262 CURLYM, /* CURLYM_B_fail */
263 IFMATCH, /* IFMATCH_A */
264 IFMATCH, /* IFMATCH_A_fail */
265 CURLY, /* CURLY_B_min_known */
266 CURLY, /* CURLY_B_min_known_fail */
267 CURLY, /* CURLY_B_min */
268 CURLY, /* CURLY_B_min_fail */
269 CURLY, /* CURLY_B_max */
270 CURLY, /* CURLY_B_max_fail */
271 COMMIT, /* COMMIT_next */
272 COMMIT, /* COMMIT_next_fail */
273 MARKPOINT, /* MARKPOINT_next */
274 MARKPOINT, /* MARKPOINT_next_fail */
5d458dd8
YO
275 SKIP, /* SKIP_next */
276 SKIP, /* SKIP_next_fail */
277 CUTGROUP, /* CUTGROUP_next */
278 CUTGROUP, /* CUTGROUP_next_fail */
ee9b8eae
YO
279 KEEPS, /* KEEPS_next */
280 KEEPS, /* KEEPS_next_fail */
d09b2d29
IZ
281};
282#endif
283
6bda09f9 284/* regarglen[] - How large is the argument part of the node (in regnodes) */
d09b2d29
IZ
285
286#ifdef REG_COMP_C
29de9391 287static const U8 regarglen[] = {
03363afd
YO
288 0, /* END */
289 0, /* SUCCEED */
290 0, /* BOL */
291 0, /* MBOL */
292 0, /* SBOL */
293 0, /* EOS */
294 0, /* EOL */
295 0, /* MEOL */
296 0, /* SEOL */
297 0, /* BOUND */
298 0, /* BOUNDL */
299 0, /* NBOUND */
300 0, /* NBOUNDL */
301 0, /* GPOS */
302 0, /* REG_ANY */
303 0, /* SANY */
304 0, /* CANY */
305 0, /* ANYOF */
306 0, /* ALNUM */
307 0, /* ALNUML */
308 0, /* NALNUM */
309 0, /* NALNUML */
310 0, /* SPACE */
311 0, /* SPACEL */
312 0, /* NSPACE */
313 0, /* NSPACEL */
314 0, /* DIGIT */
315 0, /* DIGITL */
316 0, /* NDIGIT */
317 0, /* NDIGITL */
318 0, /* CLUMP */
319 0, /* BRANCH */
320 0, /* BACK */
321 0, /* EXACT */
322 0, /* EXACTF */
323 0, /* EXACTFL */
324 0, /* NOTHING */
325 0, /* TAIL */
326 0, /* STAR */
327 0, /* PLUS */
328 EXTRA_SIZE(struct regnode_2), /* CURLY */
329 EXTRA_SIZE(struct regnode_2), /* CURLYN */
330 EXTRA_SIZE(struct regnode_2), /* CURLYM */
331 EXTRA_SIZE(struct regnode_2), /* CURLYX */
332 0, /* WHILEM */
333 EXTRA_SIZE(struct regnode_1), /* OPEN */
334 EXTRA_SIZE(struct regnode_1), /* CLOSE */
335 EXTRA_SIZE(struct regnode_1), /* REF */
336 EXTRA_SIZE(struct regnode_1), /* REFF */
337 EXTRA_SIZE(struct regnode_1), /* REFFL */
338 EXTRA_SIZE(struct regnode_1), /* IFMATCH */
339 EXTRA_SIZE(struct regnode_1), /* UNLESSM */
340 EXTRA_SIZE(struct regnode_1), /* SUSPEND */
341 EXTRA_SIZE(struct regnode_1), /* IFTHEN */
342 EXTRA_SIZE(struct regnode_1), /* GROUPP */
343 EXTRA_SIZE(struct regnode_1), /* LONGJMP */
344 EXTRA_SIZE(struct regnode_1), /* BRANCHJ */
345 EXTRA_SIZE(struct regnode_1), /* EVAL */
346 0, /* MINMOD */
347 0, /* LOGICAL */
348 EXTRA_SIZE(struct regnode_1), /* RENUM */
349 EXTRA_SIZE(struct regnode_1), /* TRIE */
350 EXTRA_SIZE(struct regnode_charclass), /* TRIEC */
351 EXTRA_SIZE(struct regnode_1), /* AHOCORASICK */
352 EXTRA_SIZE(struct regnode_charclass), /* AHOCORASICKC */
1a147d38
YO
353 EXTRA_SIZE(struct regnode_2L), /* GOSUB */
354 0, /* GOSTART */
81714fb9
YO
355 EXTRA_SIZE(struct regnode_1), /* NREF */
356 EXTRA_SIZE(struct regnode_1), /* NREFF */
357 EXTRA_SIZE(struct regnode_1), /* NREFFL */
0a4db386 358 EXTRA_SIZE(struct regnode_1), /* NGROUPP */
1a147d38 359 EXTRA_SIZE(struct regnode_1), /* INSUBP */
0a4db386 360 EXTRA_SIZE(struct regnode_1), /* DEFINEP */
e2e6a0f1 361 0, /* ENDLIKE */
7f69552c 362 0, /* OPFAIL */
e2e6a0f1
YO
363 EXTRA_SIZE(struct regnode_1), /* ACCEPT */
364 0, /* VERB */
5d458dd8 365 EXTRA_SIZE(struct regnode_1), /* PRUNE */
e2e6a0f1 366 EXTRA_SIZE(struct regnode_1), /* MARKPOINT */
5d458dd8 367 EXTRA_SIZE(struct regnode_1), /* SKIP */
e2e6a0f1 368 EXTRA_SIZE(struct regnode_1), /* COMMIT */
5d458dd8 369 EXTRA_SIZE(struct regnode_1), /* CUTGROUP */
ee9b8eae 370 0, /* KEEPS */
e1d1eefb
YO
371 0, /* LNBREAK */
372 0, /* VERTWS */
373 0, /* NVERTWS */
374 0, /* HORIZWS */
375 0, /* NHORIZWS */
03363afd
YO
376 0, /* OPTIMIZED */
377 0, /* PSEUDO */
d09b2d29
IZ
378};
379
6bda09f9
YO
380/* reg_off_by_arg[] - Which argument holds the offset to the next node */
381
29de9391 382static const char reg_off_by_arg[] = {
03363afd
YO
383 0, /* END */
384 0, /* SUCCEED */
385 0, /* BOL */
386 0, /* MBOL */
387 0, /* SBOL */
388 0, /* EOS */
389 0, /* EOL */
390 0, /* MEOL */
391 0, /* SEOL */
392 0, /* BOUND */
393 0, /* BOUNDL */
394 0, /* NBOUND */
395 0, /* NBOUNDL */
396 0, /* GPOS */
397 0, /* REG_ANY */
398 0, /* SANY */
399 0, /* CANY */
400 0, /* ANYOF */
401 0, /* ALNUM */
402 0, /* ALNUML */
403 0, /* NALNUM */
404 0, /* NALNUML */
405 0, /* SPACE */
406 0, /* SPACEL */
407 0, /* NSPACE */
408 0, /* NSPACEL */
409 0, /* DIGIT */
410 0, /* DIGITL */
411 0, /* NDIGIT */
412 0, /* NDIGITL */
413 0, /* CLUMP */
414 0, /* BRANCH */
415 0, /* BACK */
416 0, /* EXACT */
417 0, /* EXACTF */
418 0, /* EXACTFL */
419 0, /* NOTHING */
420 0, /* TAIL */
421 0, /* STAR */
422 0, /* PLUS */
423 0, /* CURLY */
424 0, /* CURLYN */
425 0, /* CURLYM */
426 0, /* CURLYX */
427 0, /* WHILEM */
428 0, /* OPEN */
429 0, /* CLOSE */
430 0, /* REF */
431 0, /* REFF */
432 0, /* REFFL */
433 2, /* IFMATCH */
434 2, /* UNLESSM */
435 1, /* SUSPEND */
436 1, /* IFTHEN */
437 0, /* GROUPP */
438 1, /* LONGJMP */
439 1, /* BRANCHJ */
440 0, /* EVAL */
441 0, /* MINMOD */
442 0, /* LOGICAL */
443 1, /* RENUM */
444 0, /* TRIE */
445 0, /* TRIEC */
446 0, /* AHOCORASICK */
447 0, /* AHOCORASICKC */
1a147d38
YO
448 0, /* GOSUB */
449 0, /* GOSTART */
81714fb9
YO
450 0, /* NREF */
451 0, /* NREFF */
452 0, /* NREFFL */
0a4db386 453 0, /* NGROUPP */
1a147d38 454 0, /* INSUBP */
0a4db386 455 0, /* DEFINEP */
e2e6a0f1 456 0, /* ENDLIKE */
7f69552c 457 0, /* OPFAIL */
e2e6a0f1
YO
458 0, /* ACCEPT */
459 0, /* VERB */
5d458dd8 460 0, /* PRUNE */
e2e6a0f1 461 0, /* MARKPOINT */
5d458dd8 462 0, /* SKIP */
e2e6a0f1 463 0, /* COMMIT */
5d458dd8 464 0, /* CUTGROUP */
ee9b8eae 465 0, /* KEEPS */
e1d1eefb
YO
466 0, /* LNBREAK */
467 0, /* VERTWS */
468 0, /* NVERTWS */
469 0, /* HORIZWS */
470 0, /* NHORIZWS */
03363afd
YO
471 0, /* OPTIMIZED */
472 0, /* PSEUDO */
d09b2d29 473};
885f9e59 474
13d6edb4
NC
475#endif /* REG_COMP_C */
476
6bda09f9
YO
477/* reg_name[] - Opcode/state names in string form, for debugging */
478
22429478 479#ifndef DOINIT
13d6edb4 480EXTCONST char * PL_reg_name[];
22429478 481#else
4764e399 482EXTCONST char * const PL_reg_name[] = {
03363afd
YO
483 "END", /* 0000 */
484 "SUCCEED", /* 0x01 */
485 "BOL", /* 0x02 */
486 "MBOL", /* 0x03 */
487 "SBOL", /* 0x04 */
488 "EOS", /* 0x05 */
489 "EOL", /* 0x06 */
490 "MEOL", /* 0x07 */
491 "SEOL", /* 0x08 */
492 "BOUND", /* 0x09 */
493 "BOUNDL", /* 0x0a */
494 "NBOUND", /* 0x0b */
495 "NBOUNDL", /* 0x0c */
496 "GPOS", /* 0x0d */
497 "REG_ANY", /* 0x0e */
498 "SANY", /* 0x0f */
499 "CANY", /* 0x10 */
500 "ANYOF", /* 0x11 */
501 "ALNUM", /* 0x12 */
502 "ALNUML", /* 0x13 */
503 "NALNUM", /* 0x14 */
504 "NALNUML", /* 0x15 */
505 "SPACE", /* 0x16 */
506 "SPACEL", /* 0x17 */
507 "NSPACE", /* 0x18 */
508 "NSPACEL", /* 0x19 */
509 "DIGIT", /* 0x1a */
510 "DIGITL", /* 0x1b */
511 "NDIGIT", /* 0x1c */
512 "NDIGITL", /* 0x1d */
513 "CLUMP", /* 0x1e */
514 "BRANCH", /* 0x1f */
515 "BACK", /* 0x20 */
516 "EXACT", /* 0x21 */
517 "EXACTF", /* 0x22 */
518 "EXACTFL", /* 0x23 */
519 "NOTHING", /* 0x24 */
520 "TAIL", /* 0x25 */
521 "STAR", /* 0x26 */
522 "PLUS", /* 0x27 */
523 "CURLY", /* 0x28 */
524 "CURLYN", /* 0x29 */
525 "CURLYM", /* 0x2a */
526 "CURLYX", /* 0x2b */
527 "WHILEM", /* 0x2c */
528 "OPEN", /* 0x2d */
529 "CLOSE", /* 0x2e */
530 "REF", /* 0x2f */
531 "REFF", /* 0x30 */
532 "REFFL", /* 0x31 */
533 "IFMATCH", /* 0x32 */
534 "UNLESSM", /* 0x33 */
535 "SUSPEND", /* 0x34 */
536 "IFTHEN", /* 0x35 */
537 "GROUPP", /* 0x36 */
538 "LONGJMP", /* 0x37 */
539 "BRANCHJ", /* 0x38 */
540 "EVAL", /* 0x39 */
541 "MINMOD", /* 0x3a */
542 "LOGICAL", /* 0x3b */
543 "RENUM", /* 0x3c */
544 "TRIE", /* 0x3d */
545 "TRIEC", /* 0x3e */
546 "AHOCORASICK", /* 0x3f */
547 "AHOCORASICKC", /* 0x40 */
1a147d38
YO
548 "GOSUB", /* 0x41 */
549 "GOSTART", /* 0x42 */
81714fb9
YO
550 "NREF", /* 0x43 */
551 "NREFF", /* 0x44 */
552 "NREFFL", /* 0x45 */
0a4db386 553 "NGROUPP", /* 0x46 */
1a147d38 554 "INSUBP", /* 0x47 */
0a4db386 555 "DEFINEP", /* 0x48 */
e2e6a0f1
YO
556 "ENDLIKE", /* 0x49 */
557 "OPFAIL", /* 0x4a */
558 "ACCEPT", /* 0x4b */
559 "VERB", /* 0x4c */
5d458dd8 560 "PRUNE", /* 0x4d */
e2e6a0f1 561 "MARKPOINT", /* 0x4e */
5d458dd8 562 "SKIP", /* 0x4f */
e2e6a0f1 563 "COMMIT", /* 0x50 */
5d458dd8 564 "CUTGROUP", /* 0x51 */
ee9b8eae 565 "KEEPS", /* 0x52 */
e1d1eefb
YO
566 "LNBREAK", /* 0x53 */
567 "VERTWS", /* 0x54 */
568 "NVERTWS", /* 0x55 */
569 "HORIZWS", /* 0x56 */
570 "NHORIZWS", /* 0x57 */
571 "OPTIMIZED", /* 0x58 */
572 "PSEUDO", /* 0x59 */
03363afd 573 /* ------------ States ------------- */
24b23f37
YO
574 "TRIE_next", /* REGNODE_MAX +0x01 */
575 "TRIE_next_fail", /* REGNODE_MAX +0x02 */
576 "EVAL_AB", /* REGNODE_MAX +0x03 */
577 "EVAL_AB_fail", /* REGNODE_MAX +0x04 */
578 "CURLYX_end", /* REGNODE_MAX +0x05 */
579 "CURLYX_end_fail", /* REGNODE_MAX +0x06 */
580 "WHILEM_A_pre", /* REGNODE_MAX +0x07 */
581 "WHILEM_A_pre_fail", /* REGNODE_MAX +0x08 */
582 "WHILEM_A_min", /* REGNODE_MAX +0x09 */
583 "WHILEM_A_min_fail", /* REGNODE_MAX +0x0a */
584 "WHILEM_A_max", /* REGNODE_MAX +0x0b */
585 "WHILEM_A_max_fail", /* REGNODE_MAX +0x0c */
586 "WHILEM_B_min", /* REGNODE_MAX +0x0d */
587 "WHILEM_B_min_fail", /* REGNODE_MAX +0x0e */
588 "WHILEM_B_max", /* REGNODE_MAX +0x0f */
589 "WHILEM_B_max_fail", /* REGNODE_MAX +0x10 */
590 "BRANCH_next", /* REGNODE_MAX +0x11 */
591 "BRANCH_next_fail", /* REGNODE_MAX +0x12 */
592 "CURLYM_A", /* REGNODE_MAX +0x13 */
593 "CURLYM_A_fail", /* REGNODE_MAX +0x14 */
594 "CURLYM_B", /* REGNODE_MAX +0x15 */
595 "CURLYM_B_fail", /* REGNODE_MAX +0x16 */
596 "IFMATCH_A", /* REGNODE_MAX +0x17 */
597 "IFMATCH_A_fail", /* REGNODE_MAX +0x18 */
598 "CURLY_B_min_known", /* REGNODE_MAX +0x19 */
599 "CURLY_B_min_known_fail", /* REGNODE_MAX +0x1a */
600 "CURLY_B_min", /* REGNODE_MAX +0x1b */
601 "CURLY_B_min_fail", /* REGNODE_MAX +0x1c */
602 "CURLY_B_max", /* REGNODE_MAX +0x1d */
603 "CURLY_B_max_fail", /* REGNODE_MAX +0x1e */
604 "COMMIT_next", /* REGNODE_MAX +0x1f */
605 "COMMIT_next_fail", /* REGNODE_MAX +0x20 */
e2e6a0f1
YO
606 "MARKPOINT_next", /* REGNODE_MAX +0x21 */
607 "MARKPOINT_next_fail", /* REGNODE_MAX +0x22 */
5d458dd8
YO
608 "SKIP_next", /* REGNODE_MAX +0x23 */
609 "SKIP_next_fail", /* REGNODE_MAX +0x24 */
610 "CUTGROUP_next", /* REGNODE_MAX +0x25 */
611 "CUTGROUP_next_fail", /* REGNODE_MAX +0x26 */
ee9b8eae
YO
612 "KEEPS_next", /* REGNODE_MAX +0x27 */
613 "KEEPS_next_fail", /* REGNODE_MAX +0x28 */
885f9e59 614};
22429478 615#endif /* DOINIT */
d09b2d29 616
37442d52 617/* ex: set ro: */