This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldelta: Regex sets are no longer experimental
[perl5.git] / regnodes.h
CommitLineData
37442d52
RGS
1/* -*- buffer-read-only: t -*-
2 !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
eb2624c9 3 This file is built by regen/regcomp.pl from regcomp.sym.
d09b2d29 4 Any changes made here will be lost!
78102347 5 */
d09b2d29 6
33b57041
KW
7#if defined(PERL_CORE) || defined(PERL_EXT_RE_BUILD)
8
6bda09f9
YO
9/* Regops and State definitions */
10
271c3af7
YO
11#define REGNODE_MAX 110
12#define REGMATCH_STATE_MAX 150
03363afd 13
bb24c5fa
KW
14/* -- For regexec.c to switch on target being utf8 (t8) or not (tb, b='byte'); */
15#define with_t_UTF8ness(op, t_utf8) (((op) << 1) + (cBOOL(t_utf8)))
16/* -- same, but also with pattern (p8, pb) -- */
ce553cf5
KW
17#define with_tp_UTF8ness(op, t_utf8, p_utf8) \
18 (((op) << 2) + (cBOOL(t_utf8) << 1) + cBOOL(p_utf8))
19
20/* The #defines below give both the basic regnode and the expanded version for
21 switching on utf8ness */
bb24c5fa
KW
22#define END 0 /* 0x00 End of program. */
23#define END_tb 0 /* 0x000 */
24#define END_t8 1 /* 0x001 */
25#define END_tb_pb 0 /* 0x000 */
26#define END_tb_p8 1 /* 0x001 */
27#define END_t8_pb 2 /* 0x002 */
28#define END_t8_p8 3 /* 0x003 */
29
30#define SUCCEED 1 /* 0x01 Return from a
31 subroutine, basically. */
32#define SUCCEED_tb 2 /* 0x002 */
33#define SUCCEED_t8 3 /* 0x003 */
34#define SUCCEED_tb_pb 4 /* 0x004 */
35#define SUCCEED_tb_p8 5 /* 0x005 */
36#define SUCCEED_t8_pb 6 /* 0x006 */
37#define SUCCEED_t8_p8 7 /* 0x007 */
38
39#define SBOL 2 /* 0x02 Match "" at beginning
40 of line: /^/, /\A/ */
41#define SBOL_tb 4 /* 0x004 */
42#define SBOL_t8 5 /* 0x005 */
43#define SBOL_tb_pb 8 /* 0x008 */
44#define SBOL_tb_p8 9 /* 0x009 */
45#define SBOL_t8_pb 10 /* 0x00a */
46#define SBOL_t8_p8 11 /* 0x00b */
47
48#define BOL 2 /* 0x02 Match "" at beginning
49 of line: /^/, /\A/ */
50#define BOL_tb 4 /* 0x004 */
51#define BOL_t8 5 /* 0x005 */
52#define BOL_tb_pb 8 /* 0x008 */
53#define BOL_tb_p8 9 /* 0x009 */
54#define BOL_t8_pb 10 /* 0x00a */
55#define BOL_t8_p8 11 /* 0x00b */
56
57#define MBOL 3 /* 0x03 Same, assuming
58 multiline: /^/m */
59#define MBOL_tb 6 /* 0x006 */
60#define MBOL_t8 7 /* 0x007 */
61#define MBOL_tb_pb 12 /* 0x00c */
62#define MBOL_tb_p8 13 /* 0x00d */
63#define MBOL_t8_pb 14 /* 0x00e */
64#define MBOL_t8_p8 15 /* 0x00f */
65
66#define SEOL 4 /* 0x04 Match "" at end of
67 line: /$/ */
68#define SEOL_tb 8 /* 0x008 */
69#define SEOL_t8 9 /* 0x009 */
70#define SEOL_tb_pb 16 /* 0x010 */
71#define SEOL_tb_p8 17 /* 0x011 */
72#define SEOL_t8_pb 18 /* 0x012 */
73#define SEOL_t8_p8 19 /* 0x013 */
74
75#define EOL 4 /* 0x04 Match "" at end of
76 line: /$/ */
77#define EOL_tb 8 /* 0x008 */
78#define EOL_t8 9 /* 0x009 */
79#define EOL_tb_pb 16 /* 0x010 */
80#define EOL_tb_p8 17 /* 0x011 */
81#define EOL_t8_pb 18 /* 0x012 */
82#define EOL_t8_p8 19 /* 0x013 */
83
84#define MEOL 5 /* 0x05 Same, assuming
85 multiline: /$/m */
86#define MEOL_tb 10 /* 0x00a */
87#define MEOL_t8 11 /* 0x00b */
88#define MEOL_tb_pb 20 /* 0x014 */
89#define MEOL_tb_p8 21 /* 0x015 */
90#define MEOL_t8_pb 22 /* 0x016 */
91#define MEOL_t8_p8 23 /* 0x017 */
92
93#define EOS 6 /* 0x06 Match "" at end of
94 string: /\z/ */
95#define EOS_tb 12 /* 0x00c */
96#define EOS_t8 13 /* 0x00d */
97#define EOS_tb_pb 24 /* 0x018 */
98#define EOS_tb_p8 25 /* 0x019 */
99#define EOS_t8_pb 26 /* 0x01a */
100#define EOS_t8_p8 27 /* 0x01b */
101
102#define GPOS 7 /* 0x07 Matches where last m//g
103 left off. */
104#define GPOS_tb 14 /* 0x00e */
105#define GPOS_t8 15 /* 0x00f */
106#define GPOS_tb_pb 28 /* 0x01c */
107#define GPOS_tb_p8 29 /* 0x01d */
108#define GPOS_t8_pb 30 /* 0x01e */
109#define GPOS_t8_p8 31 /* 0x01f */
110
111#define BOUND 8 /* 0x08 Like BOUNDA for
112 non-utf8, otherwise like
113 BOUNDU */
114#define BOUND_tb 16 /* 0x010 */
115#define BOUND_t8 17 /* 0x011 */
116#define BOUND_tb_pb 32 /* 0x020 */
117#define BOUND_tb_p8 33 /* 0x021 */
118#define BOUND_t8_pb 34 /* 0x022 */
119#define BOUND_t8_p8 35 /* 0x023 */
120
121#define BOUNDL 9 /* 0x09 Like BOUND/BOUNDU, but
122 \w and \W are defined by
123 current locale */
124#define BOUNDL_tb 18 /* 0x012 */
125#define BOUNDL_t8 19 /* 0x013 */
126#define BOUNDL_tb_pb 36 /* 0x024 */
127#define BOUNDL_tb_p8 37 /* 0x025 */
128#define BOUNDL_t8_pb 38 /* 0x026 */
129#define BOUNDL_t8_p8 39 /* 0x027 */
130
131#define BOUNDU 10 /* 0x0a Match "" at any
132 boundary of a given type
133 using /u rules. */
134#define BOUNDU_tb 20 /* 0x014 */
135#define BOUNDU_t8 21 /* 0x015 */
136#define BOUNDU_tb_pb 40 /* 0x028 */
137#define BOUNDU_tb_p8 41 /* 0x029 */
138#define BOUNDU_t8_pb 42 /* 0x02a */
139#define BOUNDU_t8_p8 43 /* 0x02b */
140
141#define BOUNDA 11 /* 0x0b Match "" at any
142 boundary between \w\W or
143 \W\w, where \w is
144 [_a-zA-Z0-9] */
145#define BOUNDA_tb 22 /* 0x016 */
146#define BOUNDA_t8 23 /* 0x017 */
147#define BOUNDA_tb_pb 44 /* 0x02c */
148#define BOUNDA_tb_p8 45 /* 0x02d */
149#define BOUNDA_t8_pb 46 /* 0x02e */
150#define BOUNDA_t8_p8 47 /* 0x02f */
151
152#define NBOUND 12 /* 0x0c Like NBOUNDA for
153 non-utf8, otherwise like
154 BOUNDU */
155#define NBOUND_tb 24 /* 0x018 */
156#define NBOUND_t8 25 /* 0x019 */
157#define NBOUND_tb_pb 48 /* 0x030 */
158#define NBOUND_tb_p8 49 /* 0x031 */
159#define NBOUND_t8_pb 50 /* 0x032 */
160#define NBOUND_t8_p8 51 /* 0x033 */
161
162#define NBOUNDL 13 /* 0x0d Like NBOUND/NBOUNDU,
163 but \w and \W are defined by
164 current locale */
165#define NBOUNDL_tb 26 /* 0x01a */
166#define NBOUNDL_t8 27 /* 0x01b */
167#define NBOUNDL_tb_pb 52 /* 0x034 */
168#define NBOUNDL_tb_p8 53 /* 0x035 */
169#define NBOUNDL_t8_pb 54 /* 0x036 */
170#define NBOUNDL_t8_p8 55 /* 0x037 */
171
172#define NBOUNDU 14 /* 0x0e Match "" at any
173 non-boundary of a given type
174 using using /u rules. */
175#define NBOUNDU_tb 28 /* 0x01c */
176#define NBOUNDU_t8 29 /* 0x01d */
177#define NBOUNDU_tb_pb 56 /* 0x038 */
178#define NBOUNDU_tb_p8 57 /* 0x039 */
179#define NBOUNDU_t8_pb 58 /* 0x03a */
180#define NBOUNDU_t8_p8 59 /* 0x03b */
181
182#define NBOUNDA 15 /* 0x0f Match "" betweeen any
183 \w\w or \W\W, where \w is
184 [_a-zA-Z0-9] */
185#define NBOUNDA_tb 30 /* 0x01e */
186#define NBOUNDA_t8 31 /* 0x01f */
187#define NBOUNDA_tb_pb 60 /* 0x03c */
188#define NBOUNDA_tb_p8 61 /* 0x03d */
189#define NBOUNDA_t8_pb 62 /* 0x03e */
190#define NBOUNDA_t8_p8 63 /* 0x03f */
191
192#define REG_ANY 16 /* 0x10 Match any one character
193 (except newline). */
194#define REG_ANY_tb 32 /* 0x020 */
195#define REG_ANY_t8 33 /* 0x021 */
196#define REG_ANY_tb_pb 64 /* 0x040 */
197#define REG_ANY_tb_p8 65 /* 0x041 */
198#define REG_ANY_t8_pb 66 /* 0x042 */
199#define REG_ANY_t8_p8 67 /* 0x043 */
200
201#define SANY 17 /* 0x11 Match any one
202 character. */
203#define SANY_tb 34 /* 0x022 */
204#define SANY_t8 35 /* 0x023 */
205#define SANY_tb_pb 68 /* 0x044 */
206#define SANY_tb_p8 69 /* 0x045 */
207#define SANY_t8_pb 70 /* 0x046 */
208#define SANY_t8_p8 71 /* 0x047 */
209
210#define ANYOF 18 /* 0x12 Match character in (or
211 not in) this class, single
212 char match only */
213#define ANYOF_tb 36 /* 0x024 */
214#define ANYOF_t8 37 /* 0x025 */
215#define ANYOF_tb_pb 72 /* 0x048 */
216#define ANYOF_tb_p8 73 /* 0x049 */
217#define ANYOF_t8_pb 74 /* 0x04a */
218#define ANYOF_t8_p8 75 /* 0x04b */
219
220#define ANYOFD 19 /* 0x13 Like ANYOF, but /d is
221 in effect */
222#define ANYOFD_tb 38 /* 0x026 */
223#define ANYOFD_t8 39 /* 0x027 */
224#define ANYOFD_tb_pb 76 /* 0x04c */
225#define ANYOFD_tb_p8 77 /* 0x04d */
226#define ANYOFD_t8_pb 78 /* 0x04e */
227#define ANYOFD_t8_p8 79 /* 0x04f */
228
229#define ANYOFL 20 /* 0x14 Like ANYOF, but /l is
230 in effect */
231#define ANYOFL_tb 40 /* 0x028 */
232#define ANYOFL_t8 41 /* 0x029 */
233#define ANYOFL_tb_pb 80 /* 0x050 */
234#define ANYOFL_tb_p8 81 /* 0x051 */
235#define ANYOFL_t8_pb 82 /* 0x052 */
236#define ANYOFL_t8_p8 83 /* 0x053 */
237
238#define ANYOFPOSIXL 21 /* 0x15 Like ANYOFL, but
239 matches [[:posix:]] classes
240 */
241#define ANYOFPOSIXL_tb 42 /* 0x02a */
242#define ANYOFPOSIXL_t8 43 /* 0x02b */
243#define ANYOFPOSIXL_tb_pb 84 /* 0x054 */
244#define ANYOFPOSIXL_tb_p8 85 /* 0x055 */
245#define ANYOFPOSIXL_t8_pb 86 /* 0x056 */
246#define ANYOFPOSIXL_t8_p8 87 /* 0x057 */
247
248#define ANYOFH 22 /* 0x16 Like ANYOF, but only
249 has "High" matches, none in
250 the bitmap; the flags field
251 contains the lowest
252 matchable UTF-8 start byte
253 */
254#define ANYOFH_tb 44 /* 0x02c */
255#define ANYOFH_t8 45 /* 0x02d */
256#define ANYOFH_tb_pb 88 /* 0x058 */
257#define ANYOFH_tb_p8 89 /* 0x059 */
258#define ANYOFH_t8_pb 90 /* 0x05a */
259#define ANYOFH_t8_p8 91 /* 0x05b */
260
261#define ANYOFHb 23 /* 0x17 Like ANYOFH, but all
262 matches share the same UTF-8
263 start byte, given in the
264 flags field */
265#define ANYOFHb_tb 46 /* 0x02e */
266#define ANYOFHb_t8 47 /* 0x02f */
267#define ANYOFHb_tb_pb 92 /* 0x05c */
268#define ANYOFHb_tb_p8 93 /* 0x05d */
269#define ANYOFHb_t8_pb 94 /* 0x05e */
270#define ANYOFHb_t8_p8 95 /* 0x05f */
271
272#define ANYOFHr 24 /* 0x18 Like ANYOFH, but the
273 flags field contains packed
274 bounds for all matchable
275 UTF-8 start bytes. */
276#define ANYOFHr_tb 48 /* 0x030 */
277#define ANYOFHr_t8 49 /* 0x031 */
278#define ANYOFHr_tb_pb 96 /* 0x060 */
279#define ANYOFHr_tb_p8 97 /* 0x061 */
280#define ANYOFHr_t8_pb 98 /* 0x062 */
281#define ANYOFHr_t8_p8 99 /* 0x063 */
282
283#define ANYOFHs 25 /* 0x19 Like ANYOFHb, but has a
284 string field that gives the
285 leading matchable UTF-8
286 bytes; flags field is len */
287#define ANYOFHs_tb 50 /* 0x032 */
288#define ANYOFHs_t8 51 /* 0x033 */
289#define ANYOFHs_tb_pb 100 /* 0x064 */
290#define ANYOFHs_tb_p8 101 /* 0x065 */
291#define ANYOFHs_t8_pb 102 /* 0x066 */
292#define ANYOFHs_t8_p8 103 /* 0x067 */
293
294#define ANYOFR 26 /* 0x1a Matches any character
295 in the range given by its
296 packed args: upper 12 bits
297 is the max delta from the
298 base lower 20; the flags
299 field contains the lowest
300 matchable UTF-8 start byte
301 */
302#define ANYOFR_tb 52 /* 0x034 */
303#define ANYOFR_t8 53 /* 0x035 */
304#define ANYOFR_tb_pb 104 /* 0x068 */
305#define ANYOFR_tb_p8 105 /* 0x069 */
306#define ANYOFR_t8_pb 106 /* 0x06a */
307#define ANYOFR_t8_p8 107 /* 0x06b */
308
309#define ANYOFRb 27 /* 0x1b Like ANYOFR, but all
310 matches share the same UTF-8
311 start byte, given in the
312 flags field */
313#define ANYOFRb_tb 54 /* 0x036 */
314#define ANYOFRb_t8 55 /* 0x037 */
315#define ANYOFRb_tb_pb 108 /* 0x06c */
316#define ANYOFRb_tb_p8 109 /* 0x06d */
317#define ANYOFRb_t8_pb 110 /* 0x06e */
318#define ANYOFRb_t8_p8 111 /* 0x06f */
319
320#define ANYOFM 28 /* 0x1c Like ANYOF, but matches
321 an invariant byte as
322 determined by the mask and
323 arg */
324#define ANYOFM_tb 56 /* 0x038 */
325#define ANYOFM_t8 57 /* 0x039 */
326#define ANYOFM_tb_pb 112 /* 0x070 */
327#define ANYOFM_tb_p8 113 /* 0x071 */
328#define ANYOFM_t8_pb 114 /* 0x072 */
329#define ANYOFM_t8_p8 115 /* 0x073 */
330
331#define NANYOFM 29 /* 0x1d complement of ANYOFM */
332#define NANYOFM_tb 58 /* 0x03a */
333#define NANYOFM_t8 59 /* 0x03b */
334#define NANYOFM_tb_pb 116 /* 0x074 */
335#define NANYOFM_tb_p8 117 /* 0x075 */
336#define NANYOFM_t8_pb 118 /* 0x076 */
337#define NANYOFM_t8_p8 119 /* 0x077 */
338
339#define POSIXD 30 /* 0x1e Some [[:class:]] under
340 /d; the FLAGS field gives
341 which one */
342#define POSIXD_tb 60 /* 0x03c */
343#define POSIXD_t8 61 /* 0x03d */
344#define POSIXD_tb_pb 120 /* 0x078 */
345#define POSIXD_tb_p8 121 /* 0x079 */
346#define POSIXD_t8_pb 122 /* 0x07a */
347#define POSIXD_t8_p8 123 /* 0x07b */
348
349#define POSIXL 31 /* 0x1f Some [[:class:]] under
350 /l; the FLAGS field gives
351 which one */
352#define POSIXL_tb 62 /* 0x03e */
353#define POSIXL_t8 63 /* 0x03f */
354#define POSIXL_tb_pb 124 /* 0x07c */
355#define POSIXL_tb_p8 125 /* 0x07d */
356#define POSIXL_t8_pb 126 /* 0x07e */
357#define POSIXL_t8_p8 127 /* 0x07f */
358
359#define POSIXU 32 /* 0x20 Some [[:class:]] under
360 /u; the FLAGS field gives
361 which one */
362#define POSIXU_tb 64 /* 0x040 */
363#define POSIXU_t8 65 /* 0x041 */
364#define POSIXU_tb_pb 128 /* 0x080 */
365#define POSIXU_tb_p8 129 /* 0x081 */
366#define POSIXU_t8_pb 130 /* 0x082 */
367#define POSIXU_t8_p8 131 /* 0x083 */
368
369#define POSIXA 33 /* 0x21 Some [[:class:]] under
370 /a; the FLAGS field gives
371 which one */
372#define POSIXA_tb 66 /* 0x042 */
373#define POSIXA_t8 67 /* 0x043 */
374#define POSIXA_tb_pb 132 /* 0x084 */
375#define POSIXA_tb_p8 133 /* 0x085 */
376#define POSIXA_t8_pb 134 /* 0x086 */
377#define POSIXA_t8_p8 135 /* 0x087 */
378
379#define NPOSIXD 34 /* 0x22 complement of POSIXD,
380 [[:^class:]] */
381#define NPOSIXD_tb 68 /* 0x044 */
382#define NPOSIXD_t8 69 /* 0x045 */
383#define NPOSIXD_tb_pb 136 /* 0x088 */
384#define NPOSIXD_tb_p8 137 /* 0x089 */
385#define NPOSIXD_t8_pb 138 /* 0x08a */
386#define NPOSIXD_t8_p8 139 /* 0x08b */
387
388#define NPOSIXL 35 /* 0x23 complement of POSIXL,
389 [[:^class:]] */
390#define NPOSIXL_tb 70 /* 0x046 */
391#define NPOSIXL_t8 71 /* 0x047 */
392#define NPOSIXL_tb_pb 140 /* 0x08c */
393#define NPOSIXL_tb_p8 141 /* 0x08d */
394#define NPOSIXL_t8_pb 142 /* 0x08e */
395#define NPOSIXL_t8_p8 143 /* 0x08f */
396
397#define NPOSIXU 36 /* 0x24 complement of POSIXU,
398 [[:^class:]] */
399#define NPOSIXU_tb 72 /* 0x048 */
400#define NPOSIXU_t8 73 /* 0x049 */
401#define NPOSIXU_tb_pb 144 /* 0x090 */
402#define NPOSIXU_tb_p8 145 /* 0x091 */
403#define NPOSIXU_t8_pb 146 /* 0x092 */
404#define NPOSIXU_t8_p8 147 /* 0x093 */
405
406#define NPOSIXA 37 /* 0x25 complement of POSIXA,
407 [[:^class:]] */
408#define NPOSIXA_tb 74 /* 0x04a */
409#define NPOSIXA_t8 75 /* 0x04b */
410#define NPOSIXA_tb_pb 148 /* 0x094 */
411#define NPOSIXA_tb_p8 149 /* 0x095 */
412#define NPOSIXA_t8_pb 150 /* 0x096 */
413#define NPOSIXA_t8_p8 151 /* 0x097 */
414
415#define CLUMP 38 /* 0x26 Match any extended
416 grapheme cluster sequence */
417#define CLUMP_tb 76 /* 0x04c */
418#define CLUMP_t8 77 /* 0x04d */
419#define CLUMP_tb_pb 152 /* 0x098 */
420#define CLUMP_tb_p8 153 /* 0x099 */
421#define CLUMP_t8_pb 154 /* 0x09a */
422#define CLUMP_t8_p8 155 /* 0x09b */
423
424#define BRANCH 39 /* 0x27 Match this alternative,
425 or the next... */
426#define BRANCH_tb 78 /* 0x04e */
427#define BRANCH_t8 79 /* 0x04f */
428#define BRANCH_tb_pb 156 /* 0x09c */
429#define BRANCH_tb_p8 157 /* 0x09d */
430#define BRANCH_t8_pb 158 /* 0x09e */
431#define BRANCH_t8_p8 159 /* 0x09f */
432
433#define EXACT 40 /* 0x28 Match this string
434 (flags field is the length).
435 */
436#define EXACT_tb 80 /* 0x050 */
437#define EXACT_t8 81 /* 0x051 */
438#define EXACT_tb_pb 160 /* 0x0a0 */
439#define EXACT_tb_p8 161 /* 0x0a1 */
440#define EXACT_t8_pb 162 /* 0x0a2 */
441#define EXACT_t8_p8 163 /* 0x0a3 */
442
443#define LEXACT 41 /* 0x29 Match this long string
444 (preceded by length; flags
445 unused). */
446#define LEXACT_tb 82 /* 0x052 */
447#define LEXACT_t8 83 /* 0x053 */
448#define LEXACT_tb_pb 164 /* 0x0a4 */
449#define LEXACT_tb_p8 165 /* 0x0a5 */
450#define LEXACT_t8_pb 166 /* 0x0a6 */
451#define LEXACT_t8_p8 167 /* 0x0a7 */
452
453#define EXACTL 42 /* 0x2a Like EXACT, but /l is
454 in effect (used so
455 locale-related warnings can
456 be checked for) */
457#define EXACTL_tb 84 /* 0x054 */
458#define EXACTL_t8 85 /* 0x055 */
459#define EXACTL_tb_pb 168 /* 0x0a8 */
460#define EXACTL_tb_p8 169 /* 0x0a9 */
461#define EXACTL_t8_pb 170 /* 0x0aa */
462#define EXACTL_t8_p8 171 /* 0x0ab */
463
464#define EXACTF 43 /* 0x2b Like EXACT, but match
465 using /id rules; (string not
466 UTF-8, ASCII folded;
467 non-ASCII not) */
468#define EXACTF_tb 86 /* 0x056 */
469#define EXACTF_t8 87 /* 0x057 */
470#define EXACTF_tb_pb 172 /* 0x0ac */
471#define EXACTF_tb_p8 173 /* 0x0ad */
472#define EXACTF_t8_pb 174 /* 0x0ae */
473#define EXACTF_t8_p8 175 /* 0x0af */
474
475#define EXACTFL 44 /* 0x2c Like EXACT, but match
476 using /il rules; (string not
477 likely to be folded) */
478#define EXACTFL_tb 88 /* 0x058 */
479#define EXACTFL_t8 89 /* 0x059 */
480#define EXACTFL_tb_pb 176 /* 0x0b0 */
481#define EXACTFL_tb_p8 177 /* 0x0b1 */
482#define EXACTFL_t8_pb 178 /* 0x0b2 */
483#define EXACTFL_t8_p8 179 /* 0x0b3 */
484
485#define EXACTFU 45 /* 0x2d Like EXACT, but match
486 using /iu rules; (string
487 folded) */
488#define EXACTFU_tb 90 /* 0x05a */
489#define EXACTFU_t8 91 /* 0x05b */
490#define EXACTFU_tb_pb 180 /* 0x0b4 */
491#define EXACTFU_tb_p8 181 /* 0x0b5 */
492#define EXACTFU_t8_pb 182 /* 0x0b6 */
493#define EXACTFU_t8_p8 183 /* 0x0b7 */
494
495#define EXACTFAA 46 /* 0x2e Like EXACT, but match
496 using /iaa rules; (string
497 folded except MICRO in
498 non-UTF8 patterns; doesn't
499 contain SHARP S unless
500 UTF-8; folded length <=
501 unfolded) */
502#define EXACTFAA_tb 92 /* 0x05c */
503#define EXACTFAA_t8 93 /* 0x05d */
504#define EXACTFAA_tb_pb 184 /* 0x0b8 */
505#define EXACTFAA_tb_p8 185 /* 0x0b9 */
506#define EXACTFAA_t8_pb 186 /* 0x0ba */
507#define EXACTFAA_t8_p8 187 /* 0x0bb */
508
509#define EXACTFAA_NO_TRIE 47 /* 0x2f Like EXACTFAA, (string
510 not UTF-8, folded except:
511 MICRO, SHARP S; folded
512 length <= unfolded, not
513 currently trie-able) */
514#define EXACTFAA_NO_TRIE_tb 94 /* 0x05e */
515#define EXACTFAA_NO_TRIE_t8 95 /* 0x05f */
516#define EXACTFAA_NO_TRIE_tb_pb 188 /* 0x0bc */
517#define EXACTFAA_NO_TRIE_tb_p8 189 /* 0x0bd */
518#define EXACTFAA_NO_TRIE_t8_pb 190 /* 0x0be */
519#define EXACTFAA_NO_TRIE_t8_p8 191 /* 0x0bf */
520
521#define EXACTFUP 48 /* 0x30 Like EXACT, but match
522 using /iu rules; (string not
523 UTF-8, folded except MICRO:
524 hence Problematic) */
525#define EXACTFUP_tb 96 /* 0x060 */
526#define EXACTFUP_t8 97 /* 0x061 */
527#define EXACTFUP_tb_pb 192 /* 0x0c0 */
528#define EXACTFUP_tb_p8 193 /* 0x0c1 */
529#define EXACTFUP_t8_pb 194 /* 0x0c2 */
530#define EXACTFUP_t8_p8 195 /* 0x0c3 */
531
532#define EXACTFLU8 49 /* 0x31 Like EXACTFU, but use
533 /il, UTF-8, (string is
534 folded, and everything in it
535 is above 255 */
536#define EXACTFLU8_tb 98 /* 0x062 */
537#define EXACTFLU8_t8 99 /* 0x063 */
538#define EXACTFLU8_tb_pb 196 /* 0x0c4 */
539#define EXACTFLU8_tb_p8 197 /* 0x0c5 */
540#define EXACTFLU8_t8_pb 198 /* 0x0c6 */
541#define EXACTFLU8_t8_p8 199 /* 0x0c7 */
542
543#define EXACT_REQ8 50 /* 0x32 Like EXACT, but only
544 UTF-8 encoded targets can
545 match */
546#define EXACT_REQ8_tb 100 /* 0x064 */
547#define EXACT_REQ8_t8 101 /* 0x065 */
548#define EXACT_REQ8_tb_pb 200 /* 0x0c8 */
549#define EXACT_REQ8_tb_p8 201 /* 0x0c9 */
550#define EXACT_REQ8_t8_pb 202 /* 0x0ca */
551#define EXACT_REQ8_t8_p8 203 /* 0x0cb */
552
553#define LEXACT_REQ8 51 /* 0x33 Like LEXACT, but only
554 UTF-8 encoded targets can
555 match */
556#define LEXACT_REQ8_tb 102 /* 0x066 */
557#define LEXACT_REQ8_t8 103 /* 0x067 */
558#define LEXACT_REQ8_tb_pb 204 /* 0x0cc */
559#define LEXACT_REQ8_tb_p8 205 /* 0x0cd */
560#define LEXACT_REQ8_t8_pb 206 /* 0x0ce */
561#define LEXACT_REQ8_t8_p8 207 /* 0x0cf */
562
563#define EXACTFU_REQ8 52 /* 0x34 Like EXACTFU, but only
564 UTF-8 encoded targets can
565 match */
566#define EXACTFU_REQ8_tb 104 /* 0x068 */
567#define EXACTFU_REQ8_t8 105 /* 0x069 */
568#define EXACTFU_REQ8_tb_pb 208 /* 0x0d0 */
569#define EXACTFU_REQ8_tb_p8 209 /* 0x0d1 */
570#define EXACTFU_REQ8_t8_pb 210 /* 0x0d2 */
571#define EXACTFU_REQ8_t8_p8 211 /* 0x0d3 */
572
573#define EXACTFU_S_EDGE 53 /* 0x35 /di rules, but nothing
574 in it precludes /ui, except
575 begins and/or ends with
576 [Ss]; (string not UTF-8;
577 compile-time only) */
578#define EXACTFU_S_EDGE_tb 106 /* 0x06a */
579#define EXACTFU_S_EDGE_t8 107 /* 0x06b */
580#define EXACTFU_S_EDGE_tb_pb 212 /* 0x0d4 */
581#define EXACTFU_S_EDGE_tb_p8 213 /* 0x0d5 */
582#define EXACTFU_S_EDGE_t8_pb 214 /* 0x0d6 */
583#define EXACTFU_S_EDGE_t8_p8 215 /* 0x0d7 */
584
585#define LNBREAK 54 /* 0x36 generic newline pattern
586 */
587#define LNBREAK_tb 108 /* 0x06c */
588#define LNBREAK_t8 109 /* 0x06d */
589#define LNBREAK_tb_pb 216 /* 0x0d8 */
590#define LNBREAK_tb_p8 217 /* 0x0d9 */
591#define LNBREAK_t8_pb 218 /* 0x0da */
592#define LNBREAK_t8_p8 219 /* 0x0db */
593
594#define TRIE 55 /* 0x37 Match many
595 EXACT(F[ALU]?)? at once.
596 flags==type */
597#define TRIE_tb 110 /* 0x06e */
598#define TRIE_t8 111 /* 0x06f */
599#define TRIE_tb_pb 220 /* 0x0dc */
600#define TRIE_tb_p8 221 /* 0x0dd */
601#define TRIE_t8_pb 222 /* 0x0de */
602#define TRIE_t8_p8 223 /* 0x0df */
603
604#define TRIEC 56 /* 0x38 Same as TRIE, but with
605 embedded charclass data */
606#define TRIEC_tb 112 /* 0x070 */
607#define TRIEC_t8 113 /* 0x071 */
608#define TRIEC_tb_pb 224 /* 0x0e0 */
609#define TRIEC_tb_p8 225 /* 0x0e1 */
610#define TRIEC_t8_pb 226 /* 0x0e2 */
611#define TRIEC_t8_p8 227 /* 0x0e3 */
612
613#define AHOCORASICK 57 /* 0x39 Aho Corasick stclass.
614 flags==type */
615#define AHOCORASICK_tb 114 /* 0x072 */
616#define AHOCORASICK_t8 115 /* 0x073 */
617#define AHOCORASICK_tb_pb 228 /* 0x0e4 */
618#define AHOCORASICK_tb_p8 229 /* 0x0e5 */
619#define AHOCORASICK_t8_pb 230 /* 0x0e6 */
620#define AHOCORASICK_t8_p8 231 /* 0x0e7 */
621
622#define AHOCORASICKC 58 /* 0x3a Same as AHOCORASICK,
623 but with embedded charclass
624 data */
625#define AHOCORASICKC_tb 116 /* 0x074 */
626#define AHOCORASICKC_t8 117 /* 0x075 */
627#define AHOCORASICKC_tb_pb 232 /* 0x0e8 */
628#define AHOCORASICKC_tb_p8 233 /* 0x0e9 */
629#define AHOCORASICKC_t8_pb 234 /* 0x0ea */
630#define AHOCORASICKC_t8_p8 235 /* 0x0eb */
631
632#define NOTHING 59 /* 0x3b Match empty string. */
633#define NOTHING_tb 118 /* 0x076 */
634#define NOTHING_t8 119 /* 0x077 */
635#define NOTHING_tb_pb 236 /* 0x0ec */
636#define NOTHING_tb_p8 237 /* 0x0ed */
637#define NOTHING_t8_pb 238 /* 0x0ee */
638#define NOTHING_t8_p8 239 /* 0x0ef */
639
640#define TAIL 60 /* 0x3c Match empty string. Can
641 jump here from outside. */
642#define TAIL_tb 120 /* 0x078 */
643#define TAIL_t8 121 /* 0x079 */
644#define TAIL_tb_pb 240 /* 0x0f0 */
645#define TAIL_tb_p8 241 /* 0x0f1 */
646#define TAIL_t8_pb 242 /* 0x0f2 */
647#define TAIL_t8_p8 243 /* 0x0f3 */
648
649#define STAR 61 /* 0x3d Match this (simple)
650 thing 0 or more times. */
651#define STAR_tb 122 /* 0x07a */
652#define STAR_t8 123 /* 0x07b */
653#define STAR_tb_pb 244 /* 0x0f4 */
654#define STAR_tb_p8 245 /* 0x0f5 */
655#define STAR_t8_pb 246 /* 0x0f6 */
656#define STAR_t8_p8 247 /* 0x0f7 */
657
658#define PLUS 62 /* 0x3e Match this (simple)
659 thing 1 or more times. */
660#define PLUS_tb 124 /* 0x07c */
661#define PLUS_t8 125 /* 0x07d */
662#define PLUS_tb_pb 248 /* 0x0f8 */
663#define PLUS_tb_p8 249 /* 0x0f9 */
664#define PLUS_t8_pb 250 /* 0x0fa */
665#define PLUS_t8_p8 251 /* 0x0fb */
666
667#define CURLY 63 /* 0x3f Match this simple thing
668 {n,m} times. */
669#define CURLY_tb 126 /* 0x07e */
670#define CURLY_t8 127 /* 0x07f */
671#define CURLY_tb_pb 252 /* 0x0fc */
672#define CURLY_tb_p8 253 /* 0x0fd */
673#define CURLY_t8_pb 254 /* 0x0fe */
674#define CURLY_t8_p8 255 /* 0x0ff */
675
676#define CURLYN 64 /* 0x40 Capture next-after-this
677 simple thing */
678#define CURLYN_tb 128 /* 0x080 */
679#define CURLYN_t8 129 /* 0x081 */
680#define CURLYN_tb_pb 256 /* 0x100 */
681#define CURLYN_tb_p8 257 /* 0x101 */
682#define CURLYN_t8_pb 258 /* 0x102 */
683#define CURLYN_t8_p8 259 /* 0x103 */
684
685#define CURLYM 65 /* 0x41 Capture this
686 medium-complex thing {n,m}
687 times. */
688#define CURLYM_tb 130 /* 0x082 */
689#define CURLYM_t8 131 /* 0x083 */
690#define CURLYM_tb_pb 260 /* 0x104 */
691#define CURLYM_tb_p8 261 /* 0x105 */
692#define CURLYM_t8_pb 262 /* 0x106 */
693#define CURLYM_t8_p8 263 /* 0x107 */
694
695#define CURLYX 66 /* 0x42 Match this complex
696 thing {n,m} times. */
697#define CURLYX_tb 132 /* 0x084 */
698#define CURLYX_t8 133 /* 0x085 */
699#define CURLYX_tb_pb 264 /* 0x108 */
700#define CURLYX_tb_p8 265 /* 0x109 */
701#define CURLYX_t8_pb 266 /* 0x10a */
702#define CURLYX_t8_p8 267 /* 0x10b */
703
704#define WHILEM 67 /* 0x43 Do curly processing and
705 see if rest matches. */
706#define WHILEM_tb 134 /* 0x086 */
707#define WHILEM_t8 135 /* 0x087 */
708#define WHILEM_tb_pb 268 /* 0x10c */
709#define WHILEM_tb_p8 269 /* 0x10d */
710#define WHILEM_t8_pb 270 /* 0x10e */
711#define WHILEM_t8_p8 271 /* 0x10f */
712
713#define OPEN 68 /* 0x44 Mark this point in
714 input as start of #n. */
715#define OPEN_tb 136 /* 0x088 */
716#define OPEN_t8 137 /* 0x089 */
717#define OPEN_tb_pb 272 /* 0x110 */
718#define OPEN_tb_p8 273 /* 0x111 */
719#define OPEN_t8_pb 274 /* 0x112 */
720#define OPEN_t8_p8 275 /* 0x113 */
721
722#define CLOSE 69 /* 0x45 Close corresponding
723 OPEN of #n. */
724#define CLOSE_tb 138 /* 0x08a */
725#define CLOSE_t8 139 /* 0x08b */
726#define CLOSE_tb_pb 276 /* 0x114 */
727#define CLOSE_tb_p8 277 /* 0x115 */
728#define CLOSE_t8_pb 278 /* 0x116 */
729#define CLOSE_t8_p8 279 /* 0x117 */
730
731#define SROPEN 70 /* 0x46 Same as OPEN, but for
732 script run */
733#define SROPEN_tb 140 /* 0x08c */
734#define SROPEN_t8 141 /* 0x08d */
735#define SROPEN_tb_pb 280 /* 0x118 */
736#define SROPEN_tb_p8 281 /* 0x119 */
737#define SROPEN_t8_pb 282 /* 0x11a */
738#define SROPEN_t8_p8 283 /* 0x11b */
739
740#define SRCLOSE 71 /* 0x47 Close preceding SROPEN
741 */
742#define SRCLOSE_tb 142 /* 0x08e */
743#define SRCLOSE_t8 143 /* 0x08f */
744#define SRCLOSE_tb_pb 284 /* 0x11c */
745#define SRCLOSE_tb_p8 285 /* 0x11d */
746#define SRCLOSE_t8_pb 286 /* 0x11e */
747#define SRCLOSE_t8_p8 287 /* 0x11f */
748
749#define REF 72 /* 0x48 Match some already
750 matched string */
751#define REF_tb 144 /* 0x090 */
752#define REF_t8 145 /* 0x091 */
753#define REF_tb_pb 288 /* 0x120 */
754#define REF_tb_p8 289 /* 0x121 */
755#define REF_t8_pb 290 /* 0x122 */
756#define REF_t8_p8 291 /* 0x123 */
757
758#define REFF 73 /* 0x49 Match already matched
759 string, using /di rules. */
760#define REFF_tb 146 /* 0x092 */
761#define REFF_t8 147 /* 0x093 */
762#define REFF_tb_pb 292 /* 0x124 */
763#define REFF_tb_p8 293 /* 0x125 */
764#define REFF_t8_pb 294 /* 0x126 */
765#define REFF_t8_p8 295 /* 0x127 */
766
767#define REFFL 74 /* 0x4a Match already matched
768 string, using /li rules. */
769#define REFFL_tb 148 /* 0x094 */
770#define REFFL_t8 149 /* 0x095 */
771#define REFFL_tb_pb 296 /* 0x128 */
772#define REFFL_tb_p8 297 /* 0x129 */
773#define REFFL_t8_pb 298 /* 0x12a */
774#define REFFL_t8_p8 299 /* 0x12b */
775
776#define REFFU 75 /* 0x4b Match already matched
777 string, usng /ui. */
778#define REFFU_tb 150 /* 0x096 */
779#define REFFU_t8 151 /* 0x097 */
780#define REFFU_tb_pb 300 /* 0x12c */
781#define REFFU_tb_p8 301 /* 0x12d */
782#define REFFU_t8_pb 302 /* 0x12e */
783#define REFFU_t8_p8 303 /* 0x12f */
784
785#define REFFA 76 /* 0x4c Match already matched
786 string, using /aai rules. */
787#define REFFA_tb 152 /* 0x098 */
788#define REFFA_t8 153 /* 0x099 */
789#define REFFA_tb_pb 304 /* 0x130 */
790#define REFFA_tb_p8 305 /* 0x131 */
791#define REFFA_t8_pb 306 /* 0x132 */
792#define REFFA_t8_p8 307 /* 0x133 */
793
794#define REFN 77 /* 0x4d Match some already
795 matched string */
796#define REFN_tb 154 /* 0x09a */
797#define REFN_t8 155 /* 0x09b */
798#define REFN_tb_pb 308 /* 0x134 */
799#define REFN_tb_p8 309 /* 0x135 */
800#define REFN_t8_pb 310 /* 0x136 */
801#define REFN_t8_p8 311 /* 0x137 */
802
803#define REFFN 78 /* 0x4e Match already matched
804 string, using /di rules. */
805#define REFFN_tb 156 /* 0x09c */
806#define REFFN_t8 157 /* 0x09d */
807#define REFFN_tb_pb 312 /* 0x138 */
808#define REFFN_tb_p8 313 /* 0x139 */
809#define REFFN_t8_pb 314 /* 0x13a */
810#define REFFN_t8_p8 315 /* 0x13b */
811
812#define REFFLN 79 /* 0x4f Match already matched
813 string, using /li rules. */
814#define REFFLN_tb 158 /* 0x09e */
815#define REFFLN_t8 159 /* 0x09f */
816#define REFFLN_tb_pb 316 /* 0x13c */
817#define REFFLN_tb_p8 317 /* 0x13d */
818#define REFFLN_t8_pb 318 /* 0x13e */
819#define REFFLN_t8_p8 319 /* 0x13f */
820
821#define REFFUN 80 /* 0x50 Match already matched
822 string, using /ui rules. */
823#define REFFUN_tb 160 /* 0x0a0 */
824#define REFFUN_t8 161 /* 0x0a1 */
825#define REFFUN_tb_pb 320 /* 0x140 */
826#define REFFUN_tb_p8 321 /* 0x141 */
827#define REFFUN_t8_pb 322 /* 0x142 */
828#define REFFUN_t8_p8 323 /* 0x143 */
829
830#define REFFAN 81 /* 0x51 Match already matched
831 string, using /aai rules. */
832#define REFFAN_tb 162 /* 0x0a2 */
833#define REFFAN_t8 163 /* 0x0a3 */
834#define REFFAN_tb_pb 324 /* 0x144 */
835#define REFFAN_tb_p8 325 /* 0x145 */
836#define REFFAN_t8_pb 326 /* 0x146 */
837#define REFFAN_t8_p8 327 /* 0x147 */
838
839#define LONGJMP 82 /* 0x52 Jump far away. */
840#define LONGJMP_tb 164 /* 0x0a4 */
841#define LONGJMP_t8 165 /* 0x0a5 */
842#define LONGJMP_tb_pb 328 /* 0x148 */
843#define LONGJMP_tb_p8 329 /* 0x149 */
844#define LONGJMP_t8_pb 330 /* 0x14a */
845#define LONGJMP_t8_p8 331 /* 0x14b */
846
847#define BRANCHJ 83 /* 0x53 BRANCH with long
848 offset. */
849#define BRANCHJ_tb 166 /* 0x0a6 */
850#define BRANCHJ_t8 167 /* 0x0a7 */
851#define BRANCHJ_tb_pb 332 /* 0x14c */
852#define BRANCHJ_tb_p8 333 /* 0x14d */
853#define BRANCHJ_t8_pb 334 /* 0x14e */
854#define BRANCHJ_t8_p8 335 /* 0x14f */
855
856#define IFMATCH 84 /* 0x54 Succeeds if the
857 following matches; non-zero
858 flags "f", next_off "o"
859 means lookbehind assertion
860 starting "f..(f-o)"
861 characters before current */
862#define IFMATCH_tb 168 /* 0x0a8 */
863#define IFMATCH_t8 169 /* 0x0a9 */
864#define IFMATCH_tb_pb 336 /* 0x150 */
865#define IFMATCH_tb_p8 337 /* 0x151 */
866#define IFMATCH_t8_pb 338 /* 0x152 */
867#define IFMATCH_t8_p8 339 /* 0x153 */
868
869#define UNLESSM 85 /* 0x55 Fails if the following
870 matches; non-zero flags "f",
871 next_off "o" means
872 lookbehind assertion
873 starting "f..(f-o)"
874 characters before current */
875#define UNLESSM_tb 170 /* 0x0aa */
876#define UNLESSM_t8 171 /* 0x0ab */
877#define UNLESSM_tb_pb 340 /* 0x154 */
878#define UNLESSM_tb_p8 341 /* 0x155 */
879#define UNLESSM_t8_pb 342 /* 0x156 */
880#define UNLESSM_t8_p8 343 /* 0x157 */
881
882#define SUSPEND 86 /* 0x56 "Independent" sub-RE.
883 */
884#define SUSPEND_tb 172 /* 0x0ac */
885#define SUSPEND_t8 173 /* 0x0ad */
886#define SUSPEND_tb_pb 344 /* 0x158 */
887#define SUSPEND_tb_p8 345 /* 0x159 */
888#define SUSPEND_t8_pb 346 /* 0x15a */
889#define SUSPEND_t8_p8 347 /* 0x15b */
890
891#define IFTHEN 87 /* 0x57 Switch, should be
892 preceded by switcher. */
893#define IFTHEN_tb 174 /* 0x0ae */
894#define IFTHEN_t8 175 /* 0x0af */
895#define IFTHEN_tb_pb 348 /* 0x15c */
896#define IFTHEN_tb_p8 349 /* 0x15d */
897#define IFTHEN_t8_pb 350 /* 0x15e */
898#define IFTHEN_t8_p8 351 /* 0x15f */
899
900#define GROUPP 88 /* 0x58 Whether the group
901 matched. */
902#define GROUPP_tb 176 /* 0x0b0 */
903#define GROUPP_t8 177 /* 0x0b1 */
904#define GROUPP_tb_pb 352 /* 0x160 */
905#define GROUPP_tb_p8 353 /* 0x161 */
906#define GROUPP_t8_pb 354 /* 0x162 */
907#define GROUPP_t8_p8 355 /* 0x163 */
908
909#define EVAL 89 /* 0x59 Execute some Perl code.
910 */
911#define EVAL_tb 178 /* 0x0b2 */
912#define EVAL_t8 179 /* 0x0b3 */
913#define EVAL_tb_pb 356 /* 0x164 */
914#define EVAL_tb_p8 357 /* 0x165 */
915#define EVAL_t8_pb 358 /* 0x166 */
916#define EVAL_t8_p8 359 /* 0x167 */
917
918#define MINMOD 90 /* 0x5a Next operator is not
919 greedy. */
920#define MINMOD_tb 180 /* 0x0b4 */
921#define MINMOD_t8 181 /* 0x0b5 */
922#define MINMOD_tb_pb 360 /* 0x168 */
923#define MINMOD_tb_p8 361 /* 0x169 */
924#define MINMOD_t8_pb 362 /* 0x16a */
925#define MINMOD_t8_p8 363 /* 0x16b */
926
927#define LOGICAL 91 /* 0x5b Next opcode should set
928 the flag only. */
929#define LOGICAL_tb 182 /* 0x0b6 */
930#define LOGICAL_t8 183 /* 0x0b7 */
931#define LOGICAL_tb_pb 364 /* 0x16c */
932#define LOGICAL_tb_p8 365 /* 0x16d */
933#define LOGICAL_t8_pb 366 /* 0x16e */
934#define LOGICAL_t8_p8 367 /* 0x16f */
935
936#define RENUM 92 /* 0x5c Group with
937 independently numbered
938 parens. */
939#define RENUM_tb 184 /* 0x0b8 */
940#define RENUM_t8 185 /* 0x0b9 */
941#define RENUM_tb_pb 368 /* 0x170 */
942#define RENUM_tb_p8 369 /* 0x171 */
943#define RENUM_t8_pb 370 /* 0x172 */
944#define RENUM_t8_p8 371 /* 0x173 */
945
946#define GOSUB 93 /* 0x5d recurse to paren arg1
947 at (signed) ofs arg2 */
948#define GOSUB_tb 186 /* 0x0ba */
949#define GOSUB_t8 187 /* 0x0bb */
950#define GOSUB_tb_pb 372 /* 0x174 */
951#define GOSUB_tb_p8 373 /* 0x175 */
952#define GOSUB_t8_pb 374 /* 0x176 */
953#define GOSUB_t8_p8 375 /* 0x177 */
954
955#define GROUPPN 94 /* 0x5e Whether the group
956 matched. */
957#define GROUPPN_tb 188 /* 0x0bc */
958#define GROUPPN_t8 189 /* 0x0bd */
959#define GROUPPN_tb_pb 376 /* 0x178 */
960#define GROUPPN_tb_p8 377 /* 0x179 */
961#define GROUPPN_t8_pb 378 /* 0x17a */
962#define GROUPPN_t8_p8 379 /* 0x17b */
963
964#define INSUBP 95 /* 0x5f Whether we are in a
965 specific recurse. */
966#define INSUBP_tb 190 /* 0x0be */
967#define INSUBP_t8 191 /* 0x0bf */
968#define INSUBP_tb_pb 380 /* 0x17c */
969#define INSUBP_tb_p8 381 /* 0x17d */
970#define INSUBP_t8_pb 382 /* 0x17e */
971#define INSUBP_t8_p8 383 /* 0x17f */
972
973#define DEFINEP 96 /* 0x60 Never execute directly.
974 */
975#define DEFINEP_tb 192 /* 0x0c0 */
976#define DEFINEP_t8 193 /* 0x0c1 */
977#define DEFINEP_tb_pb 384 /* 0x180 */
978#define DEFINEP_tb_p8 385 /* 0x181 */
979#define DEFINEP_t8_pb 386 /* 0x182 */
980#define DEFINEP_t8_p8 387 /* 0x183 */
981
982#define ENDLIKE 97 /* 0x61 Used only for the type
983 field of verbs */
984#define ENDLIKE_tb 194 /* 0x0c2 */
985#define ENDLIKE_t8 195 /* 0x0c3 */
986#define ENDLIKE_tb_pb 388 /* 0x184 */
987#define ENDLIKE_tb_p8 389 /* 0x185 */
988#define ENDLIKE_t8_pb 390 /* 0x186 */
989#define ENDLIKE_t8_p8 391 /* 0x187 */
990
991#define OPFAIL 98 /* 0x62 Same as (?!), but with
992 verb arg */
993#define OPFAIL_tb 196 /* 0x0c4 */
994#define OPFAIL_t8 197 /* 0x0c5 */
995#define OPFAIL_tb_pb 392 /* 0x188 */
996#define OPFAIL_tb_p8 393 /* 0x189 */
997#define OPFAIL_t8_pb 394 /* 0x18a */
998#define OPFAIL_t8_p8 395 /* 0x18b */
999
1000#define ACCEPT 99 /* 0x63 Accepts the current
1001 matched string, with verbar
1002 */
1003#define ACCEPT_tb 198 /* 0x0c6 */
1004#define ACCEPT_t8 199 /* 0x0c7 */
1005#define ACCEPT_tb_pb 396 /* 0x18c */
1006#define ACCEPT_tb_p8 397 /* 0x18d */
1007#define ACCEPT_t8_pb 398 /* 0x18e */
1008#define ACCEPT_t8_p8 399 /* 0x18f */
1009
1010#define VERB 100 /* 0x64 Used only for the type
1011 field of verbs */
1012#define VERB_tb 200 /* 0x0c8 */
1013#define VERB_t8 201 /* 0x0c9 */
1014#define VERB_tb_pb 400 /* 0x190 */
1015#define VERB_tb_p8 401 /* 0x191 */
1016#define VERB_t8_pb 402 /* 0x192 */
1017#define VERB_t8_p8 403 /* 0x193 */
1018
1019#define PRUNE 101 /* 0x65 Pattern fails at this
1020 startpoint if
1021 no-backtracking through this
1022 */
1023#define PRUNE_tb 202 /* 0x0ca */
1024#define PRUNE_t8 203 /* 0x0cb */
1025#define PRUNE_tb_pb 404 /* 0x194 */
1026#define PRUNE_tb_p8 405 /* 0x195 */
1027#define PRUNE_t8_pb 406 /* 0x196 */
1028#define PRUNE_t8_p8 407 /* 0x197 */
1029
1030#define MARKPOINT 102 /* 0x66 Push the current
1031 location for rollback by
1032 cut. */
1033#define MARKPOINT_tb 204 /* 0x0cc */
1034#define MARKPOINT_t8 205 /* 0x0cd */
1035#define MARKPOINT_tb_pb 408 /* 0x198 */
1036#define MARKPOINT_tb_p8 409 /* 0x199 */
1037#define MARKPOINT_t8_pb 410 /* 0x19a */
1038#define MARKPOINT_t8_p8 411 /* 0x19b */
1039
1040#define SKIP 103 /* 0x67 On failure skip forward
1041 (to the mark) before
1042 retrying */
1043#define SKIP_tb 206 /* 0x0ce */
1044#define SKIP_t8 207 /* 0x0cf */
1045#define SKIP_tb_pb 412 /* 0x19c */
1046#define SKIP_tb_p8 413 /* 0x19d */
1047#define SKIP_t8_pb 414 /* 0x19e */
1048#define SKIP_t8_p8 415 /* 0x19f */
1049
1050#define COMMIT 104 /* 0x68 Pattern fails outright
1051 if backtracking through this
1052 */
1053#define COMMIT_tb 208 /* 0x0d0 */
1054#define COMMIT_t8 209 /* 0x0d1 */
1055#define COMMIT_tb_pb 416 /* 0x1a0 */
1056#define COMMIT_tb_p8 417 /* 0x1a1 */
1057#define COMMIT_t8_pb 418 /* 0x1a2 */
1058#define COMMIT_t8_p8 419 /* 0x1a3 */
1059
1060#define CUTGROUP 105 /* 0x69 On failure go to the
1061 next alternation in the
1062 group */
1063#define CUTGROUP_tb 210 /* 0x0d2 */
1064#define CUTGROUP_t8 211 /* 0x0d3 */
1065#define CUTGROUP_tb_pb 420 /* 0x1a4 */
1066#define CUTGROUP_tb_p8 421 /* 0x1a5 */
1067#define CUTGROUP_t8_pb 422 /* 0x1a6 */
1068#define CUTGROUP_t8_p8 423 /* 0x1a7 */
1069
1070#define KEEPS 106 /* 0x6a $& begins here. */
1071#define KEEPS_tb 212 /* 0x0d4 */
1072#define KEEPS_t8 213 /* 0x0d5 */
1073#define KEEPS_tb_pb 424 /* 0x1a8 */
1074#define KEEPS_tb_p8 425 /* 0x1a9 */
1075#define KEEPS_t8_pb 426 /* 0x1aa */
1076#define KEEPS_t8_p8 427 /* 0x1ab */
1077
271c3af7
YO
1078#define LOOKBEHIND_END 107 /* 0x6b Return from lookbehind
1079 (IFMATCH/UNLESSM) and
1080 validate position */
1081#define LOOKBEHIND_END_tb 214 /* 0x0d6 */
1082#define LOOKBEHIND_END_t8 215 /* 0x0d7 */
1083#define LOOKBEHIND_END_tb_pb 428 /* 0x1ac */
1084#define LOOKBEHIND_END_tb_p8 429 /* 0x1ad */
1085#define LOOKBEHIND_END_t8_pb 430 /* 0x1ae */
1086#define LOOKBEHIND_END_t8_p8 431 /* 0x1af */
1087
1088#define OPTIMIZED 108 /* 0x6c Placeholder for dump.
bb24c5fa 1089 */
271c3af7
YO
1090#define OPTIMIZED_tb 216 /* 0x0d8 */
1091#define OPTIMIZED_t8 217 /* 0x0d9 */
1092#define OPTIMIZED_tb_pb 432 /* 0x1b0 */
1093#define OPTIMIZED_tb_p8 433 /* 0x1b1 */
1094#define OPTIMIZED_t8_pb 434 /* 0x1b2 */
1095#define OPTIMIZED_t8_p8 435 /* 0x1b3 */
1096
1097#define PSEUDO 109 /* 0x6d Pseudo opcode for
bb24c5fa 1098 internal use. */
271c3af7
YO
1099#define PSEUDO_tb 218 /* 0x0da */
1100#define PSEUDO_t8 219 /* 0x0db */
1101#define PSEUDO_tb_pb 436 /* 0x1b4 */
1102#define PSEUDO_tb_p8 437 /* 0x1b5 */
1103#define PSEUDO_t8_pb 438 /* 0x1b6 */
1104#define PSEUDO_t8_p8 439 /* 0x1b7 */
1105
1106#define REGEX_SET 110 /* 0x6e Regex set, temporary
bb24c5fa
KW
1107 node used in
1108 pre-optimization compilation
1109 */
271c3af7
YO
1110#define REGEX_SET_tb 220 /* 0x0dc */
1111#define REGEX_SET_t8 221 /* 0x0dd */
1112#define REGEX_SET_tb_pb 440 /* 0x1b8 */
1113#define REGEX_SET_tb_p8 441 /* 0x1b9 */
1114#define REGEX_SET_t8_pb 442 /* 0x1ba */
1115#define REGEX_SET_t8_p8 443 /* 0x1bb */
ce553cf5 1116
03363afd 1117 /* ------------ States ------------- */
271c3af7
YO
1118#define TRIE_next 111 /* 0x6f state for TRIE */
1119#define TRIE_next_tb 222 /* 0x0de */
1120#define TRIE_next_t8 223 /* 0x0df */
1121#define TRIE_next_tb_pb 444 /* 0x1bc */
1122#define TRIE_next_tb_p8 445 /* 0x1bd */
1123#define TRIE_next_t8_pb 446 /* 0x1be */
1124#define TRIE_next_t8_p8 447 /* 0x1bf */
1125
1126#define TRIE_next_fail 112 /* 0x70 state for TRIE */
1127#define TRIE_next_fail_tb 224 /* 0x0e0 */
1128#define TRIE_next_fail_t8 225 /* 0x0e1 */
1129#define TRIE_next_fail_tb_pb 448 /* 0x1c0 */
1130#define TRIE_next_fail_tb_p8 449 /* 0x1c1 */
1131#define TRIE_next_fail_t8_pb 450 /* 0x1c2 */
1132#define TRIE_next_fail_t8_p8 451 /* 0x1c3 */
1133
1134#define EVAL_B 113 /* 0x71 state for EVAL */
1135#define EVAL_B_tb 226 /* 0x0e2 */
1136#define EVAL_B_t8 227 /* 0x0e3 */
1137#define EVAL_B_tb_pb 452 /* 0x1c4 */
1138#define EVAL_B_tb_p8 453 /* 0x1c5 */
1139#define EVAL_B_t8_pb 454 /* 0x1c6 */
1140#define EVAL_B_t8_p8 455 /* 0x1c7 */
1141
1142#define EVAL_B_fail 114 /* 0x72 state for EVAL */
1143#define EVAL_B_fail_tb 228 /* 0x0e4 */
1144#define EVAL_B_fail_t8 229 /* 0x0e5 */
1145#define EVAL_B_fail_tb_pb 456 /* 0x1c8 */
1146#define EVAL_B_fail_tb_p8 457 /* 0x1c9 */
1147#define EVAL_B_fail_t8_pb 458 /* 0x1ca */
1148#define EVAL_B_fail_t8_p8 459 /* 0x1cb */
1149
1150#define EVAL_postponed_AB 115 /* 0x73 state for EVAL */
1151#define EVAL_postponed_AB_tb 230 /* 0x0e6 */
1152#define EVAL_postponed_AB_t8 231 /* 0x0e7 */
1153#define EVAL_postponed_AB_tb_pb 460 /* 0x1cc */
1154#define EVAL_postponed_AB_tb_p8 461 /* 0x1cd */
1155#define EVAL_postponed_AB_t8_pb 462 /* 0x1ce */
1156#define EVAL_postponed_AB_t8_p8 463 /* 0x1cf */
1157
1158#define EVAL_postponed_AB_fail 116 /* 0x74 state for EVAL */
1159#define EVAL_postponed_AB_fail_tb 232 /* 0x0e8 */
1160#define EVAL_postponed_AB_fail_t8 233 /* 0x0e9 */
1161#define EVAL_postponed_AB_fail_tb_pb 464 /* 0x1d0 */
1162#define EVAL_postponed_AB_fail_tb_p8 465 /* 0x1d1 */
1163#define EVAL_postponed_AB_fail_t8_pb 466 /* 0x1d2 */
1164#define EVAL_postponed_AB_fail_t8_p8 467 /* 0x1d3 */
1165
1166#define CURLYX_end 117 /* 0x75 state for CURLYX */
1167#define CURLYX_end_tb 234 /* 0x0ea */
1168#define CURLYX_end_t8 235 /* 0x0eb */
1169#define CURLYX_end_tb_pb 468 /* 0x1d4 */
1170#define CURLYX_end_tb_p8 469 /* 0x1d5 */
1171#define CURLYX_end_t8_pb 470 /* 0x1d6 */
1172#define CURLYX_end_t8_p8 471 /* 0x1d7 */
1173
1174#define CURLYX_end_fail 118 /* 0x76 state for CURLYX */
1175#define CURLYX_end_fail_tb 236 /* 0x0ec */
1176#define CURLYX_end_fail_t8 237 /* 0x0ed */
1177#define CURLYX_end_fail_tb_pb 472 /* 0x1d8 */
1178#define CURLYX_end_fail_tb_p8 473 /* 0x1d9 */
1179#define CURLYX_end_fail_t8_pb 474 /* 0x1da */
1180#define CURLYX_end_fail_t8_p8 475 /* 0x1db */
1181
1182#define WHILEM_A_pre 119 /* 0x77 state for WHILEM */
1183#define WHILEM_A_pre_tb 238 /* 0x0ee */
1184#define WHILEM_A_pre_t8 239 /* 0x0ef */
1185#define WHILEM_A_pre_tb_pb 476 /* 0x1dc */
1186#define WHILEM_A_pre_tb_p8 477 /* 0x1dd */
1187#define WHILEM_A_pre_t8_pb 478 /* 0x1de */
1188#define WHILEM_A_pre_t8_p8 479 /* 0x1df */
1189
1190#define WHILEM_A_pre_fail 120 /* 0x78 state for WHILEM */
1191#define WHILEM_A_pre_fail_tb 240 /* 0x0f0 */
1192#define WHILEM_A_pre_fail_t8 241 /* 0x0f1 */
1193#define WHILEM_A_pre_fail_tb_pb 480 /* 0x1e0 */
1194#define WHILEM_A_pre_fail_tb_p8 481 /* 0x1e1 */
1195#define WHILEM_A_pre_fail_t8_pb 482 /* 0x1e2 */
1196#define WHILEM_A_pre_fail_t8_p8 483 /* 0x1e3 */
1197
1198#define WHILEM_A_min 121 /* 0x79 state for WHILEM */
1199#define WHILEM_A_min_tb 242 /* 0x0f2 */
1200#define WHILEM_A_min_t8 243 /* 0x0f3 */
1201#define WHILEM_A_min_tb_pb 484 /* 0x1e4 */
1202#define WHILEM_A_min_tb_p8 485 /* 0x1e5 */
1203#define WHILEM_A_min_t8_pb 486 /* 0x1e6 */
1204#define WHILEM_A_min_t8_p8 487 /* 0x1e7 */
1205
1206#define WHILEM_A_min_fail 122 /* 0x7a state for WHILEM */
1207#define WHILEM_A_min_fail_tb 244 /* 0x0f4 */
1208#define WHILEM_A_min_fail_t8 245 /* 0x0f5 */
1209#define WHILEM_A_min_fail_tb_pb 488 /* 0x1e8 */
1210#define WHILEM_A_min_fail_tb_p8 489 /* 0x1e9 */
1211#define WHILEM_A_min_fail_t8_pb 490 /* 0x1ea */
1212#define WHILEM_A_min_fail_t8_p8 491 /* 0x1eb */
1213
1214#define WHILEM_A_max 123 /* 0x7b state for WHILEM */
1215#define WHILEM_A_max_tb 246 /* 0x0f6 */
1216#define WHILEM_A_max_t8 247 /* 0x0f7 */
1217#define WHILEM_A_max_tb_pb 492 /* 0x1ec */
1218#define WHILEM_A_max_tb_p8 493 /* 0x1ed */
1219#define WHILEM_A_max_t8_pb 494 /* 0x1ee */
1220#define WHILEM_A_max_t8_p8 495 /* 0x1ef */
1221
1222#define WHILEM_A_max_fail 124 /* 0x7c state for WHILEM */
1223#define WHILEM_A_max_fail_tb 248 /* 0x0f8 */
1224#define WHILEM_A_max_fail_t8 249 /* 0x0f9 */
1225#define WHILEM_A_max_fail_tb_pb 496 /* 0x1f0 */
1226#define WHILEM_A_max_fail_tb_p8 497 /* 0x1f1 */
1227#define WHILEM_A_max_fail_t8_pb 498 /* 0x1f2 */
1228#define WHILEM_A_max_fail_t8_p8 499 /* 0x1f3 */
1229
1230#define WHILEM_B_min 125 /* 0x7d state for WHILEM */
1231#define WHILEM_B_min_tb 250 /* 0x0fa */
1232#define WHILEM_B_min_t8 251 /* 0x0fb */
1233#define WHILEM_B_min_tb_pb 500 /* 0x1f4 */
1234#define WHILEM_B_min_tb_p8 501 /* 0x1f5 */
1235#define WHILEM_B_min_t8_pb 502 /* 0x1f6 */
1236#define WHILEM_B_min_t8_p8 503 /* 0x1f7 */
1237
1238#define WHILEM_B_min_fail 126 /* 0x7e state for WHILEM */
1239#define WHILEM_B_min_fail_tb 252 /* 0x0fc */
1240#define WHILEM_B_min_fail_t8 253 /* 0x0fd */
1241#define WHILEM_B_min_fail_tb_pb 504 /* 0x1f8 */
1242#define WHILEM_B_min_fail_tb_p8 505 /* 0x1f9 */
1243#define WHILEM_B_min_fail_t8_pb 506 /* 0x1fa */
1244#define WHILEM_B_min_fail_t8_p8 507 /* 0x1fb */
1245
1246#define WHILEM_B_max 127 /* 0x7f state for WHILEM */
1247#define WHILEM_B_max_tb 254 /* 0x0fe */
1248#define WHILEM_B_max_t8 255 /* 0x0ff */
1249#define WHILEM_B_max_tb_pb 508 /* 0x1fc */
1250#define WHILEM_B_max_tb_p8 509 /* 0x1fd */
1251#define WHILEM_B_max_t8_pb 510 /* 0x1fe */
1252#define WHILEM_B_max_t8_p8 511 /* 0x1ff */
1253
1254#define WHILEM_B_max_fail 128 /* 0x80 state for WHILEM */
1255#define WHILEM_B_max_fail_tb 256 /* 0x100 */
1256#define WHILEM_B_max_fail_t8 257 /* 0x101 */
1257#define WHILEM_B_max_fail_tb_pb 512 /* 0x200 */
1258#define WHILEM_B_max_fail_tb_p8 513 /* 0x201 */
1259#define WHILEM_B_max_fail_t8_pb 514 /* 0x202 */
1260#define WHILEM_B_max_fail_t8_p8 515 /* 0x203 */
1261
1262#define BRANCH_next 129 /* 0x81 state for BRANCH */
1263#define BRANCH_next_tb 258 /* 0x102 */
1264#define BRANCH_next_t8 259 /* 0x103 */
1265#define BRANCH_next_tb_pb 516 /* 0x204 */
1266#define BRANCH_next_tb_p8 517 /* 0x205 */
1267#define BRANCH_next_t8_pb 518 /* 0x206 */
1268#define BRANCH_next_t8_p8 519 /* 0x207 */
1269
1270#define BRANCH_next_fail 130 /* 0x82 state for BRANCH */
1271#define BRANCH_next_fail_tb 260 /* 0x104 */
1272#define BRANCH_next_fail_t8 261 /* 0x105 */
1273#define BRANCH_next_fail_tb_pb 520 /* 0x208 */
1274#define BRANCH_next_fail_tb_p8 521 /* 0x209 */
1275#define BRANCH_next_fail_t8_pb 522 /* 0x20a */
1276#define BRANCH_next_fail_t8_p8 523 /* 0x20b */
1277
1278#define CURLYM_A 131 /* 0x83 state for CURLYM */
1279#define CURLYM_A_tb 262 /* 0x106 */
1280#define CURLYM_A_t8 263 /* 0x107 */
1281#define CURLYM_A_tb_pb 524 /* 0x20c */
1282#define CURLYM_A_tb_p8 525 /* 0x20d */
1283#define CURLYM_A_t8_pb 526 /* 0x20e */
1284#define CURLYM_A_t8_p8 527 /* 0x20f */
1285
1286#define CURLYM_A_fail 132 /* 0x84 state for CURLYM */
1287#define CURLYM_A_fail_tb 264 /* 0x108 */
1288#define CURLYM_A_fail_t8 265 /* 0x109 */
1289#define CURLYM_A_fail_tb_pb 528 /* 0x210 */
1290#define CURLYM_A_fail_tb_p8 529 /* 0x211 */
1291#define CURLYM_A_fail_t8_pb 530 /* 0x212 */
1292#define CURLYM_A_fail_t8_p8 531 /* 0x213 */
1293
1294#define CURLYM_B 133 /* 0x85 state for CURLYM */
1295#define CURLYM_B_tb 266 /* 0x10a */
1296#define CURLYM_B_t8 267 /* 0x10b */
1297#define CURLYM_B_tb_pb 532 /* 0x214 */
1298#define CURLYM_B_tb_p8 533 /* 0x215 */
1299#define CURLYM_B_t8_pb 534 /* 0x216 */
1300#define CURLYM_B_t8_p8 535 /* 0x217 */
1301
1302#define CURLYM_B_fail 134 /* 0x86 state for CURLYM */
1303#define CURLYM_B_fail_tb 268 /* 0x10c */
1304#define CURLYM_B_fail_t8 269 /* 0x10d */
1305#define CURLYM_B_fail_tb_pb 536 /* 0x218 */
1306#define CURLYM_B_fail_tb_p8 537 /* 0x219 */
1307#define CURLYM_B_fail_t8_pb 538 /* 0x21a */
1308#define CURLYM_B_fail_t8_p8 539 /* 0x21b */
1309
1310#define IFMATCH_A 135 /* 0x87 state for IFMATCH */
1311#define IFMATCH_A_tb 270 /* 0x10e */
1312#define IFMATCH_A_t8 271 /* 0x10f */
1313#define IFMATCH_A_tb_pb 540 /* 0x21c */
1314#define IFMATCH_A_tb_p8 541 /* 0x21d */
1315#define IFMATCH_A_t8_pb 542 /* 0x21e */
1316#define IFMATCH_A_t8_p8 543 /* 0x21f */
1317
1318#define IFMATCH_A_fail 136 /* 0x88 state for IFMATCH */
1319#define IFMATCH_A_fail_tb 272 /* 0x110 */
1320#define IFMATCH_A_fail_t8 273 /* 0x111 */
1321#define IFMATCH_A_fail_tb_pb 544 /* 0x220 */
1322#define IFMATCH_A_fail_tb_p8 545 /* 0x221 */
1323#define IFMATCH_A_fail_t8_pb 546 /* 0x222 */
1324#define IFMATCH_A_fail_t8_p8 547 /* 0x223 */
1325
1326#define CURLY_B_min 137 /* 0x89 state for CURLY */
1327#define CURLY_B_min_tb 274 /* 0x112 */
1328#define CURLY_B_min_t8 275 /* 0x113 */
1329#define CURLY_B_min_tb_pb 548 /* 0x224 */
1330#define CURLY_B_min_tb_p8 549 /* 0x225 */
1331#define CURLY_B_min_t8_pb 550 /* 0x226 */
1332#define CURLY_B_min_t8_p8 551 /* 0x227 */
1333
1334#define CURLY_B_min_fail 138 /* 0x8a state for CURLY */
1335#define CURLY_B_min_fail_tb 276 /* 0x114 */
1336#define CURLY_B_min_fail_t8 277 /* 0x115 */
1337#define CURLY_B_min_fail_tb_pb 552 /* 0x228 */
1338#define CURLY_B_min_fail_tb_p8 553 /* 0x229 */
1339#define CURLY_B_min_fail_t8_pb 554 /* 0x22a */
1340#define CURLY_B_min_fail_t8_p8 555 /* 0x22b */
1341
1342#define CURLY_B_max 139 /* 0x8b state for CURLY */
1343#define CURLY_B_max_tb 278 /* 0x116 */
1344#define CURLY_B_max_t8 279 /* 0x117 */
1345#define CURLY_B_max_tb_pb 556 /* 0x22c */
1346#define CURLY_B_max_tb_p8 557 /* 0x22d */
1347#define CURLY_B_max_t8_pb 558 /* 0x22e */
1348#define CURLY_B_max_t8_p8 559 /* 0x22f */
1349
1350#define CURLY_B_max_fail 140 /* 0x8c state for CURLY */
1351#define CURLY_B_max_fail_tb 280 /* 0x118 */
1352#define CURLY_B_max_fail_t8 281 /* 0x119 */
1353#define CURLY_B_max_fail_tb_pb 560 /* 0x230 */
1354#define CURLY_B_max_fail_tb_p8 561 /* 0x231 */
1355#define CURLY_B_max_fail_t8_pb 562 /* 0x232 */
1356#define CURLY_B_max_fail_t8_p8 563 /* 0x233 */
1357
1358#define COMMIT_next 141 /* 0x8d state for COMMIT */
1359#define COMMIT_next_tb 282 /* 0x11a */
1360#define COMMIT_next_t8 283 /* 0x11b */
1361#define COMMIT_next_tb_pb 564 /* 0x234 */
1362#define COMMIT_next_tb_p8 565 /* 0x235 */
1363#define COMMIT_next_t8_pb 566 /* 0x236 */
1364#define COMMIT_next_t8_p8 567 /* 0x237 */
1365
1366#define COMMIT_next_fail 142 /* 0x8e state for COMMIT */
1367#define COMMIT_next_fail_tb 284 /* 0x11c */
1368#define COMMIT_next_fail_t8 285 /* 0x11d */
1369#define COMMIT_next_fail_tb_pb 568 /* 0x238 */
1370#define COMMIT_next_fail_tb_p8 569 /* 0x239 */
1371#define COMMIT_next_fail_t8_pb 570 /* 0x23a */
1372#define COMMIT_next_fail_t8_p8 571 /* 0x23b */
1373
1374#define MARKPOINT_next 143 /* 0x8f state for MARKPOINT */
1375#define MARKPOINT_next_tb 286 /* 0x11e */
1376#define MARKPOINT_next_t8 287 /* 0x11f */
1377#define MARKPOINT_next_tb_pb 572 /* 0x23c */
1378#define MARKPOINT_next_tb_p8 573 /* 0x23d */
1379#define MARKPOINT_next_t8_pb 574 /* 0x23e */
1380#define MARKPOINT_next_t8_p8 575 /* 0x23f */
1381
1382#define MARKPOINT_next_fail 144 /* 0x90 state for MARKPOINT */
1383#define MARKPOINT_next_fail_tb 288 /* 0x120 */
1384#define MARKPOINT_next_fail_t8 289 /* 0x121 */
1385#define MARKPOINT_next_fail_tb_pb 576 /* 0x240 */
1386#define MARKPOINT_next_fail_tb_p8 577 /* 0x241 */
1387#define MARKPOINT_next_fail_t8_pb 578 /* 0x242 */
1388#define MARKPOINT_next_fail_t8_p8 579 /* 0x243 */
1389
1390#define SKIP_next 145 /* 0x91 state for SKIP */
1391#define SKIP_next_tb 290 /* 0x122 */
1392#define SKIP_next_t8 291 /* 0x123 */
1393#define SKIP_next_tb_pb 580 /* 0x244 */
1394#define SKIP_next_tb_p8 581 /* 0x245 */
1395#define SKIP_next_t8_pb 582 /* 0x246 */
1396#define SKIP_next_t8_p8 583 /* 0x247 */
1397
1398#define SKIP_next_fail 146 /* 0x92 state for SKIP */
1399#define SKIP_next_fail_tb 292 /* 0x124 */
1400#define SKIP_next_fail_t8 293 /* 0x125 */
1401#define SKIP_next_fail_tb_pb 584 /* 0x248 */
1402#define SKIP_next_fail_tb_p8 585 /* 0x249 */
1403#define SKIP_next_fail_t8_pb 586 /* 0x24a */
1404#define SKIP_next_fail_t8_p8 587 /* 0x24b */
1405
1406#define CUTGROUP_next 147 /* 0x93 state for CUTGROUP */
1407#define CUTGROUP_next_tb 294 /* 0x126 */
1408#define CUTGROUP_next_t8 295 /* 0x127 */
1409#define CUTGROUP_next_tb_pb 588 /* 0x24c */
1410#define CUTGROUP_next_tb_p8 589 /* 0x24d */
1411#define CUTGROUP_next_t8_pb 590 /* 0x24e */
1412#define CUTGROUP_next_t8_p8 591 /* 0x24f */
1413
1414#define CUTGROUP_next_fail 148 /* 0x94 state for CUTGROUP */
1415#define CUTGROUP_next_fail_tb 296 /* 0x128 */
1416#define CUTGROUP_next_fail_t8 297 /* 0x129 */
1417#define CUTGROUP_next_fail_tb_pb 592 /* 0x250 */
1418#define CUTGROUP_next_fail_tb_p8 593 /* 0x251 */
1419#define CUTGROUP_next_fail_t8_pb 594 /* 0x252 */
1420#define CUTGROUP_next_fail_t8_p8 595 /* 0x253 */
1421
1422#define KEEPS_next 149 /* 0x95 state for KEEPS */
1423#define KEEPS_next_tb 298 /* 0x12a */
1424#define KEEPS_next_t8 299 /* 0x12b */
1425#define KEEPS_next_tb_pb 596 /* 0x254 */
1426#define KEEPS_next_tb_p8 597 /* 0x255 */
1427#define KEEPS_next_t8_pb 598 /* 0x256 */
1428#define KEEPS_next_t8_p8 599 /* 0x257 */
1429
1430#define KEEPS_next_fail 150 /* 0x96 state for KEEPS */
1431#define KEEPS_next_fail_tb 300 /* 0x12c */
1432#define KEEPS_next_fail_t8 301 /* 0x12d */
1433#define KEEPS_next_fail_tb_pb 600 /* 0x258 */
1434#define KEEPS_next_fail_tb_p8 601 /* 0x259 */
1435#define KEEPS_next_fail_t8_pb 602 /* 0x25a */
1436#define KEEPS_next_fail_t8_p8 603 /* 0x25b */
ce553cf5 1437
03363afd 1438
6bda09f9 1439/* PL_regkind[] What type of regop or state is this. */
d09b2d29
IZ
1440
1441#ifndef DOINIT
22c35a8c 1442EXTCONST U8 PL_regkind[];
d09b2d29 1443#else
22c35a8c 1444EXTCONST U8 PL_regkind[] = {
e2e6a0f1
YO
1445 END, /* END */
1446 END, /* SUCCEED */
e2e6a0f1 1447 BOL, /* SBOL */
d3d47aac 1448 BOL, /* MBOL */
e2e6a0f1 1449 EOL, /* SEOL */
d3d47aac
YO
1450 EOL, /* MEOL */
1451 EOL, /* EOS */
1452 GPOS, /* GPOS */
e2e6a0f1
YO
1453 BOUND, /* BOUND */
1454 BOUND, /* BOUNDL */
1e355c70 1455 BOUND, /* BOUNDU */
0c6e81eb 1456 BOUND, /* BOUNDA */
e2e6a0f1
YO
1457 NBOUND, /* NBOUND */
1458 NBOUND, /* NBOUNDL */
1e355c70 1459 NBOUND, /* NBOUNDU */
0c6e81eb 1460 NBOUND, /* NBOUNDA */
e2e6a0f1
YO
1461 REG_ANY, /* REG_ANY */
1462 REG_ANY, /* SANY */
e2e6a0f1 1463 ANYOF, /* ANYOF */
ac44c12e 1464 ANYOF, /* ANYOFD */
a4525e78 1465 ANYOF, /* ANYOFL */
3edce4f5 1466 ANYOF, /* ANYOFPOSIXL */
c316b824 1467 ANYOF, /* ANYOFH */
6966a05b 1468 ANYOF, /* ANYOFHb */
3146c00a 1469 ANYOF, /* ANYOFHr */
34924db0 1470 ANYOF, /* ANYOFHs */
13fcf652 1471 ANYOFR, /* ANYOFR */
2d5613be 1472 ANYOFR, /* ANYOFRb */
67a1b5f9 1473 ANYOFM, /* ANYOFM */
3db0bccc 1474 ANYOFM, /* NANYOFM */
3615ea58
KW
1475 POSIXD, /* POSIXD */
1476 POSIXD, /* POSIXL */
1477 POSIXD, /* POSIXU */
1478 POSIXD, /* POSIXA */
9e84774b
KW
1479 NPOSIXD, /* NPOSIXD */
1480 NPOSIXD, /* NPOSIXL */
1481 NPOSIXD, /* NPOSIXU */
1482 NPOSIXD, /* NPOSIXA */
e2e6a0f1
YO
1483 CLUMP, /* CLUMP */
1484 BRANCH, /* BRANCH */
e2e6a0f1 1485 EXACT, /* EXACT */
ae06e581 1486 EXACT, /* LEXACT */
a4525e78 1487 EXACT, /* EXACTL */
e2e6a0f1
YO
1488 EXACT, /* EXACTF */
1489 EXACT, /* EXACTFL */
01f98ec2 1490 EXACT, /* EXACTFU */
89829bb5 1491 EXACT, /* EXACTFAA */
f97d9711 1492 EXACT, /* EXACTFAA_NO_TRIE */
627a7895 1493 EXACT, /* EXACTFUP */
a4525e78 1494 EXACT, /* EXACTFLU8 */
3f2416ae
KW
1495 EXACT, /* EXACT_REQ8 */
1496 EXACT, /* LEXACT_REQ8 */
1497 EXACT, /* EXACTFU_REQ8 */
95fb0a6e 1498 EXACT, /* EXACTFU_S_EDGE */
7af55186
KW
1499 LNBREAK, /* LNBREAK */
1500 TRIE, /* TRIE */
1501 TRIE, /* TRIEC */
1502 TRIE, /* AHOCORASICK */
1503 TRIE, /* AHOCORASICKC */
e2e6a0f1
YO
1504 NOTHING, /* NOTHING */
1505 NOTHING, /* TAIL */
1506 STAR, /* STAR */
1507 PLUS, /* PLUS */
1508 CURLY, /* CURLY */
1509 CURLY, /* CURLYN */
1510 CURLY, /* CURLYM */
1511 CURLY, /* CURLYX */
1512 WHILEM, /* WHILEM */
1513 OPEN, /* OPEN */
1514 CLOSE, /* CLOSE */
07093db4
KW
1515 SROPEN, /* SROPEN */
1516 SRCLOSE, /* SRCLOSE */
e2e6a0f1
YO
1517 REF, /* REF */
1518 REF, /* REFF */
1519 REF, /* REFFL */
01f98ec2 1520 REF, /* REFFU */
781aab5c 1521 REF, /* REFFA */
016b7209
KW
1522 REF, /* REFN */
1523 REF, /* REFFN */
1524 REF, /* REFFLN */
1525 REF, /* REFFUN */
1526 REF, /* REFFAN */
d3d47aac
YO
1527 LONGJMP, /* LONGJMP */
1528 BRANCHJ, /* BRANCHJ */
e2e6a0f1
YO
1529 BRANCHJ, /* IFMATCH */
1530 BRANCHJ, /* UNLESSM */
1531 BRANCHJ, /* SUSPEND */
1532 BRANCHJ, /* IFTHEN */
1533 GROUPP, /* GROUPP */
e2e6a0f1
YO
1534 EVAL, /* EVAL */
1535 MINMOD, /* MINMOD */
1536 LOGICAL, /* LOGICAL */
1537 BRANCHJ, /* RENUM */
e2e6a0f1 1538 GOSUB, /* GOSUB */
016b7209 1539 GROUPPN, /* GROUPPN */
e2e6a0f1
YO
1540 INSUBP, /* INSUBP */
1541 DEFINEP, /* DEFINEP */
1542 ENDLIKE, /* ENDLIKE */
1543 ENDLIKE, /* OPFAIL */
1544 ENDLIKE, /* ACCEPT */
1545 VERB, /* VERB */
5d458dd8 1546 VERB, /* PRUNE */
e2e6a0f1 1547 VERB, /* MARKPOINT */
5d458dd8 1548 VERB, /* SKIP */
e2e6a0f1 1549 VERB, /* COMMIT */
5d458dd8 1550 VERB, /* CUTGROUP */
ee9b8eae 1551 KEEPS, /* KEEPS */
271c3af7 1552 END, /* LOOKBEHIND_END */
e2e6a0f1
YO
1553 NOTHING, /* OPTIMIZED */
1554 PSEUDO, /* PSEUDO */
86451f01 1555 REGEX_SET, /* REGEX_SET */
03363afd 1556 /* ------------ States ------------- */
e2e6a0f1
YO
1557 TRIE, /* TRIE_next */
1558 TRIE, /* TRIE_next_fail */
4ee16520
DM
1559 EVAL, /* EVAL_B */
1560 EVAL, /* EVAL_B_fail */
1561 EVAL, /* EVAL_postponed_AB */
1562 EVAL, /* EVAL_postponed_AB_fail */
e2e6a0f1
YO
1563 CURLYX, /* CURLYX_end */
1564 CURLYX, /* CURLYX_end_fail */
1565 WHILEM, /* WHILEM_A_pre */
1566 WHILEM, /* WHILEM_A_pre_fail */
1567 WHILEM, /* WHILEM_A_min */
1568 WHILEM, /* WHILEM_A_min_fail */
1569 WHILEM, /* WHILEM_A_max */
1570 WHILEM, /* WHILEM_A_max_fail */
1571 WHILEM, /* WHILEM_B_min */
1572 WHILEM, /* WHILEM_B_min_fail */
1573 WHILEM, /* WHILEM_B_max */
1574 WHILEM, /* WHILEM_B_max_fail */
1575 BRANCH, /* BRANCH_next */
1576 BRANCH, /* BRANCH_next_fail */
1577 CURLYM, /* CURLYM_A */
1578 CURLYM, /* CURLYM_A_fail */
1579 CURLYM, /* CURLYM_B */
1580 CURLYM, /* CURLYM_B_fail */
1581 IFMATCH, /* IFMATCH_A */
1582 IFMATCH, /* IFMATCH_A_fail */
e2e6a0f1
YO
1583 CURLY, /* CURLY_B_min */
1584 CURLY, /* CURLY_B_min_fail */
1585 CURLY, /* CURLY_B_max */
1586 CURLY, /* CURLY_B_max_fail */
1587 COMMIT, /* COMMIT_next */
1588 COMMIT, /* COMMIT_next_fail */
1589 MARKPOINT, /* MARKPOINT_next */
1590 MARKPOINT, /* MARKPOINT_next_fail */
5d458dd8
YO
1591 SKIP, /* SKIP_next */
1592 SKIP, /* SKIP_next_fail */
1593 CUTGROUP, /* CUTGROUP_next */
1594 CUTGROUP, /* CUTGROUP_next_fail */
ee9b8eae
YO
1595 KEEPS, /* KEEPS_next */
1596 KEEPS, /* KEEPS_next_fail */
d09b2d29
IZ
1597};
1598#endif
1599
f83e001e
YO
1600#ifdef REG_COMP_C
1601
6bda09f9 1602/* regarglen[] - How large is the argument part of the node (in regnodes) */
d09b2d29 1603
29de9391 1604static const U8 regarglen[] = {
03363afd
YO
1605 0, /* END */
1606 0, /* SUCCEED */
03363afd 1607 0, /* SBOL */
d3d47aac 1608 0, /* MBOL */
03363afd 1609 0, /* SEOL */
d3d47aac
YO
1610 0, /* MEOL */
1611 0, /* EOS */
1612 0, /* GPOS */
03363afd
YO
1613 0, /* BOUND */
1614 0, /* BOUNDL */
1e355c70 1615 0, /* BOUNDU */
0c6e81eb 1616 0, /* BOUNDA */
03363afd
YO
1617 0, /* NBOUND */
1618 0, /* NBOUNDL */
1e355c70 1619 0, /* NBOUNDU */
0c6e81eb 1620 0, /* NBOUNDA */
03363afd
YO
1621 0, /* REG_ANY */
1622 0, /* SANY */
46fc0c43
KW
1623 EXTRA_SIZE(struct regnode_charclass), /* ANYOF */
1624 EXTRA_SIZE(struct regnode_charclass), /* ANYOFD */
1625 EXTRA_SIZE(struct regnode_charclass), /* ANYOFL */
1626 EXTRA_SIZE(struct regnode_charclass_posixl), /* ANYOFPOSIXL */
c316b824 1627 EXTRA_SIZE(struct regnode_1), /* ANYOFH */
6966a05b 1628 EXTRA_SIZE(struct regnode_1), /* ANYOFHb */
3146c00a 1629 EXTRA_SIZE(struct regnode_1), /* ANYOFHr */
53d42e43 1630 EXTRA_SIZE(struct regnode_1), /* ANYOFHs */
13fcf652 1631 EXTRA_SIZE(struct regnode_1), /* ANYOFR */
2d5613be 1632 EXTRA_SIZE(struct regnode_1), /* ANYOFRb */
67a1b5f9 1633 EXTRA_SIZE(struct regnode_1), /* ANYOFM */
3db0bccc 1634 EXTRA_SIZE(struct regnode_1), /* NANYOFM */
3615ea58
KW
1635 0, /* POSIXD */
1636 0, /* POSIXL */
1637 0, /* POSIXU */
1638 0, /* POSIXA */
1639 0, /* NPOSIXD */
1640 0, /* NPOSIXL */
1641 0, /* NPOSIXU */
1642 0, /* NPOSIXA */
03363afd
YO
1643 0, /* CLUMP */
1644 0, /* BRANCH */
03363afd 1645 0, /* EXACT */
ae06e581 1646 EXTRA_SIZE(struct regnode_1), /* LEXACT */
a4525e78 1647 0, /* EXACTL */
03363afd
YO
1648 0, /* EXACTF */
1649 0, /* EXACTFL */
01f98ec2 1650 0, /* EXACTFU */
89829bb5 1651 0, /* EXACTFAA */
f97d9711 1652 0, /* EXACTFAA_NO_TRIE */
627a7895 1653 0, /* EXACTFUP */
a4525e78 1654 0, /* EXACTFLU8 */
3f2416ae
KW
1655 0, /* EXACT_REQ8 */
1656 EXTRA_SIZE(struct regnode_1), /* LEXACT_REQ8 */
1657 0, /* EXACTFU_REQ8 */
95fb0a6e 1658 0, /* EXACTFU_S_EDGE */
7af55186
KW
1659 0, /* LNBREAK */
1660 EXTRA_SIZE(struct regnode_1), /* TRIE */
1661 EXTRA_SIZE(struct regnode_charclass), /* TRIEC */
1662 EXTRA_SIZE(struct regnode_1), /* AHOCORASICK */
1663 EXTRA_SIZE(struct regnode_charclass), /* AHOCORASICKC */
03363afd
YO
1664 0, /* NOTHING */
1665 0, /* TAIL */
1666 0, /* STAR */
1667 0, /* PLUS */
1668 EXTRA_SIZE(struct regnode_2), /* CURLY */
1669 EXTRA_SIZE(struct regnode_2), /* CURLYN */
1670 EXTRA_SIZE(struct regnode_2), /* CURLYM */
1671 EXTRA_SIZE(struct regnode_2), /* CURLYX */
1672 0, /* WHILEM */
1673 EXTRA_SIZE(struct regnode_1), /* OPEN */
1674 EXTRA_SIZE(struct regnode_1), /* CLOSE */
07093db4
KW
1675 0, /* SROPEN */
1676 0, /* SRCLOSE */
03363afd
YO
1677 EXTRA_SIZE(struct regnode_1), /* REF */
1678 EXTRA_SIZE(struct regnode_1), /* REFF */
1679 EXTRA_SIZE(struct regnode_1), /* REFFL */
01f98ec2 1680 EXTRA_SIZE(struct regnode_1), /* REFFU */
781aab5c 1681 EXTRA_SIZE(struct regnode_1), /* REFFA */
016b7209
KW
1682 EXTRA_SIZE(struct regnode_1), /* REFN */
1683 EXTRA_SIZE(struct regnode_1), /* REFFN */
1684 EXTRA_SIZE(struct regnode_1), /* REFFLN */
1685 EXTRA_SIZE(struct regnode_1), /* REFFUN */
1686 EXTRA_SIZE(struct regnode_1), /* REFFAN */
d3d47aac
YO
1687 EXTRA_SIZE(struct regnode_1), /* LONGJMP */
1688 EXTRA_SIZE(struct regnode_1), /* BRANCHJ */
03363afd
YO
1689 EXTRA_SIZE(struct regnode_1), /* IFMATCH */
1690 EXTRA_SIZE(struct regnode_1), /* UNLESSM */
1691 EXTRA_SIZE(struct regnode_1), /* SUSPEND */
1692 EXTRA_SIZE(struct regnode_1), /* IFTHEN */
1693 EXTRA_SIZE(struct regnode_1), /* GROUPP */
13f27704 1694 EXTRA_SIZE(struct regnode_2L), /* EVAL */
03363afd
YO
1695 0, /* MINMOD */
1696 0, /* LOGICAL */
1697 EXTRA_SIZE(struct regnode_1), /* RENUM */
1a147d38 1698 EXTRA_SIZE(struct regnode_2L), /* GOSUB */
016b7209 1699 EXTRA_SIZE(struct regnode_1), /* GROUPPN */
1a147d38 1700 EXTRA_SIZE(struct regnode_1), /* INSUBP */
0a4db386 1701 EXTRA_SIZE(struct regnode_1), /* DEFINEP */
e2e6a0f1 1702 0, /* ENDLIKE */
fee50582
YO
1703 EXTRA_SIZE(struct regnode_1), /* OPFAIL */
1704 EXTRA_SIZE(struct regnode_2L), /* ACCEPT */
20832bc5 1705 EXTRA_SIZE(struct regnode_1), /* VERB */
5d458dd8 1706 EXTRA_SIZE(struct regnode_1), /* PRUNE */
e2e6a0f1 1707 EXTRA_SIZE(struct regnode_1), /* MARKPOINT */
5d458dd8 1708 EXTRA_SIZE(struct regnode_1), /* SKIP */
e2e6a0f1 1709 EXTRA_SIZE(struct regnode_1), /* COMMIT */
5d458dd8 1710 EXTRA_SIZE(struct regnode_1), /* CUTGROUP */
ee9b8eae 1711 0, /* KEEPS */
271c3af7 1712 0, /* LOOKBEHIND_END */
03363afd
YO
1713 0, /* OPTIMIZED */
1714 0, /* PSEUDO */
86451f01 1715 EXTRA_SIZE(struct regnode_p), /* REGEX_SET */
d09b2d29
IZ
1716};
1717
6bda09f9
YO
1718/* reg_off_by_arg[] - Which argument holds the offset to the next node */
1719
29de9391 1720static const char reg_off_by_arg[] = {
03363afd
YO
1721 0, /* END */
1722 0, /* SUCCEED */
03363afd 1723 0, /* SBOL */
d3d47aac 1724 0, /* MBOL */
03363afd 1725 0, /* SEOL */
d3d47aac
YO
1726 0, /* MEOL */
1727 0, /* EOS */
1728 0, /* GPOS */
03363afd
YO
1729 0, /* BOUND */
1730 0, /* BOUNDL */
1e355c70 1731 0, /* BOUNDU */
0c6e81eb 1732 0, /* BOUNDA */
03363afd
YO
1733 0, /* NBOUND */
1734 0, /* NBOUNDL */
1e355c70 1735 0, /* NBOUNDU */
0c6e81eb 1736 0, /* NBOUNDA */
03363afd
YO
1737 0, /* REG_ANY */
1738 0, /* SANY */
03363afd 1739 0, /* ANYOF */
ac44c12e 1740 0, /* ANYOFD */
a4525e78 1741 0, /* ANYOFL */
3edce4f5 1742 0, /* ANYOFPOSIXL */
c316b824 1743 0, /* ANYOFH */
6966a05b 1744 0, /* ANYOFHb */
3146c00a 1745 0, /* ANYOFHr */
34924db0 1746 0, /* ANYOFHs */
13fcf652 1747 0, /* ANYOFR */
2d5613be 1748 0, /* ANYOFRb */
67a1b5f9 1749 0, /* ANYOFM */
3db0bccc 1750 0, /* NANYOFM */
3615ea58
KW
1751 0, /* POSIXD */
1752 0, /* POSIXL */
1753 0, /* POSIXU */
1754 0, /* POSIXA */
1755 0, /* NPOSIXD */
1756 0, /* NPOSIXL */
1757 0, /* NPOSIXU */
1758 0, /* NPOSIXA */
03363afd
YO
1759 0, /* CLUMP */
1760 0, /* BRANCH */
03363afd 1761 0, /* EXACT */
ae06e581 1762 0, /* LEXACT */
a4525e78 1763 0, /* EXACTL */
03363afd
YO
1764 0, /* EXACTF */
1765 0, /* EXACTFL */
01f98ec2 1766 0, /* EXACTFU */
89829bb5 1767 0, /* EXACTFAA */
f97d9711 1768 0, /* EXACTFAA_NO_TRIE */
627a7895 1769 0, /* EXACTFUP */
a4525e78 1770 0, /* EXACTFLU8 */
3f2416ae
KW
1771 0, /* EXACT_REQ8 */
1772 0, /* LEXACT_REQ8 */
1773 0, /* EXACTFU_REQ8 */
95fb0a6e 1774 0, /* EXACTFU_S_EDGE */
7af55186
KW
1775 0, /* LNBREAK */
1776 0, /* TRIE */
1777 0, /* TRIEC */
1778 0, /* AHOCORASICK */
1779 0, /* AHOCORASICKC */
03363afd
YO
1780 0, /* NOTHING */
1781 0, /* TAIL */
1782 0, /* STAR */
1783 0, /* PLUS */
1784 0, /* CURLY */
1785 0, /* CURLYN */
1786 0, /* CURLYM */
1787 0, /* CURLYX */
1788 0, /* WHILEM */
1789 0, /* OPEN */
1790 0, /* CLOSE */
07093db4
KW
1791 0, /* SROPEN */
1792 0, /* SRCLOSE */
03363afd
YO
1793 0, /* REF */
1794 0, /* REFF */
1795 0, /* REFFL */
01f98ec2 1796 0, /* REFFU */
781aab5c 1797 0, /* REFFA */
016b7209
KW
1798 0, /* REFN */
1799 0, /* REFFN */
1800 0, /* REFFLN */
1801 0, /* REFFUN */
1802 0, /* REFFAN */
d3d47aac
YO
1803 1, /* LONGJMP */
1804 1, /* BRANCHJ */
46167d76
KW
1805 1, /* IFMATCH */
1806 1, /* UNLESSM */
03363afd
YO
1807 1, /* SUSPEND */
1808 1, /* IFTHEN */
1809 0, /* GROUPP */
03363afd
YO
1810 0, /* EVAL */
1811 0, /* MINMOD */
1812 0, /* LOGICAL */
1813 1, /* RENUM */
1a147d38 1814 0, /* GOSUB */
016b7209 1815 0, /* GROUPPN */
1a147d38 1816 0, /* INSUBP */
0a4db386 1817 0, /* DEFINEP */
e2e6a0f1 1818 0, /* ENDLIKE */
7f69552c 1819 0, /* OPFAIL */
e2e6a0f1
YO
1820 0, /* ACCEPT */
1821 0, /* VERB */
5d458dd8 1822 0, /* PRUNE */
e2e6a0f1 1823 0, /* MARKPOINT */
5d458dd8 1824 0, /* SKIP */
e2e6a0f1 1825 0, /* COMMIT */
5d458dd8 1826 0, /* CUTGROUP */
ee9b8eae 1827 0, /* KEEPS */
271c3af7 1828 0, /* LOOKBEHIND_END */
03363afd
YO
1829 0, /* OPTIMIZED */
1830 0, /* PSEUDO */
86451f01 1831 0, /* REGEX_SET */
d09b2d29 1832};
885f9e59 1833
13d6edb4
NC
1834#endif /* REG_COMP_C */
1835
f83e001e 1836
6bda09f9
YO
1837/* reg_name[] - Opcode/state names in string form, for debugging */
1838
22429478 1839#ifndef DOINIT
13d6edb4 1840EXTCONST char * PL_reg_name[];
22429478 1841#else
4764e399 1842EXTCONST char * const PL_reg_name[] = {
03363afd
YO
1843 "END", /* 0000 */
1844 "SUCCEED", /* 0x01 */
d3d47aac 1845 "SBOL", /* 0x02 */
03363afd 1846 "MBOL", /* 0x03 */
d3d47aac
YO
1847 "SEOL", /* 0x04 */
1848 "MEOL", /* 0x05 */
1849 "EOS", /* 0x06 */
1850 "GPOS", /* 0x07 */
1851 "BOUND", /* 0x08 */
1852 "BOUNDL", /* 0x09 */
1853 "BOUNDU", /* 0x0a */
1854 "BOUNDA", /* 0x0b */
1855 "NBOUND", /* 0x0c */
1856 "NBOUNDL", /* 0x0d */
1857 "NBOUNDU", /* 0x0e */
1858 "NBOUNDA", /* 0x0f */
1859 "REG_ANY", /* 0x10 */
1860 "SANY", /* 0x11 */
33c28ab2 1861 "ANYOF", /* 0x12 */
ac44c12e
KW
1862 "ANYOFD", /* 0x13 */
1863 "ANYOFL", /* 0x14 */
3edce4f5 1864 "ANYOFPOSIXL", /* 0x15 */
c316b824 1865 "ANYOFH", /* 0x16 */
6966a05b 1866 "ANYOFHb", /* 0x17 */
3146c00a 1867 "ANYOFHr", /* 0x18 */
34924db0
KW
1868 "ANYOFHs", /* 0x19 */
1869 "ANYOFR", /* 0x1a */
1870 "ANYOFRb", /* 0x1b */
1871 "ANYOFM", /* 0x1c */
1872 "NANYOFM", /* 0x1d */
1873 "POSIXD", /* 0x1e */
1874 "POSIXL", /* 0x1f */
1875 "POSIXU", /* 0x20 */
1876 "POSIXA", /* 0x21 */
1877 "NPOSIXD", /* 0x22 */
1878 "NPOSIXL", /* 0x23 */
1879 "NPOSIXU", /* 0x24 */
1880 "NPOSIXA", /* 0x25 */
1881 "CLUMP", /* 0x26 */
1882 "BRANCH", /* 0x27 */
1883 "EXACT", /* 0x28 */
1884 "LEXACT", /* 0x29 */
1885 "EXACTL", /* 0x2a */
1886 "EXACTF", /* 0x2b */
1887 "EXACTFL", /* 0x2c */
1888 "EXACTFU", /* 0x2d */
1889 "EXACTFAA", /* 0x2e */
f97d9711
KW
1890 "EXACTFAA_NO_TRIE", /* 0x2f */
1891 "EXACTFUP", /* 0x30 */
1892 "EXACTFLU8", /* 0x31 */
34924db0
KW
1893 "EXACT_REQ8", /* 0x32 */
1894 "LEXACT_REQ8", /* 0x33 */
1895 "EXACTFU_REQ8", /* 0x34 */
1896 "EXACTFU_S_EDGE", /* 0x35 */
7af55186
KW
1897 "LNBREAK", /* 0x36 */
1898 "TRIE", /* 0x37 */
1899 "TRIEC", /* 0x38 */
1900 "AHOCORASICK", /* 0x39 */
1901 "AHOCORASICKC", /* 0x3a */
1902 "NOTHING", /* 0x3b */
1903 "TAIL", /* 0x3c */
1904 "STAR", /* 0x3d */
1905 "PLUS", /* 0x3e */
1906 "CURLY", /* 0x3f */
1907 "CURLYN", /* 0x40 */
1908 "CURLYM", /* 0x41 */
1909 "CURLYX", /* 0x42 */
1910 "WHILEM", /* 0x43 */
1911 "OPEN", /* 0x44 */
1912 "CLOSE", /* 0x45 */
1913 "SROPEN", /* 0x46 */
1914 "SRCLOSE", /* 0x47 */
1915 "REF", /* 0x48 */
1916 "REFF", /* 0x49 */
1917 "REFFL", /* 0x4a */
1918 "REFFU", /* 0x4b */
1919 "REFFA", /* 0x4c */
1920 "REFN", /* 0x4d */
1921 "REFFN", /* 0x4e */
1922 "REFFLN", /* 0x4f */
1923 "REFFUN", /* 0x50 */
1924 "REFFAN", /* 0x51 */
1925 "LONGJMP", /* 0x52 */
1926 "BRANCHJ", /* 0x53 */
1927 "IFMATCH", /* 0x54 */
1928 "UNLESSM", /* 0x55 */
1929 "SUSPEND", /* 0x56 */
1930 "IFTHEN", /* 0x57 */
1931 "GROUPP", /* 0x58 */
1932 "EVAL", /* 0x59 */
1933 "MINMOD", /* 0x5a */
1934 "LOGICAL", /* 0x5b */
1935 "RENUM", /* 0x5c */
1936 "GOSUB", /* 0x5d */
1937 "GROUPPN", /* 0x5e */
1938 "INSUBP", /* 0x5f */
1939 "DEFINEP", /* 0x60 */
1940 "ENDLIKE", /* 0x61 */
1941 "OPFAIL", /* 0x62 */
1942 "ACCEPT", /* 0x63 */
1943 "VERB", /* 0x64 */
1944 "PRUNE", /* 0x65 */
1945 "MARKPOINT", /* 0x66 */
1946 "SKIP", /* 0x67 */
1947 "COMMIT", /* 0x68 */
1948 "CUTGROUP", /* 0x69 */
1949 "KEEPS", /* 0x6a */
271c3af7
YO
1950 "LOOKBEHIND_END", /* 0x6b */
1951 "OPTIMIZED", /* 0x6c */
1952 "PSEUDO", /* 0x6d */
1953 "REGEX_SET", /* 0x6e */
03363afd 1954 /* ------------ States ------------- */
24b23f37
YO
1955 "TRIE_next", /* REGNODE_MAX +0x01 */
1956 "TRIE_next_fail", /* REGNODE_MAX +0x02 */
4ee16520
DM
1957 "EVAL_B", /* REGNODE_MAX +0x03 */
1958 "EVAL_B_fail", /* REGNODE_MAX +0x04 */
1959 "EVAL_postponed_AB", /* REGNODE_MAX +0x05 */
1960 "EVAL_postponed_AB_fail", /* REGNODE_MAX +0x06 */
1961 "CURLYX_end", /* REGNODE_MAX +0x07 */
1962 "CURLYX_end_fail", /* REGNODE_MAX +0x08 */
1963 "WHILEM_A_pre", /* REGNODE_MAX +0x09 */
1964 "WHILEM_A_pre_fail", /* REGNODE_MAX +0x0a */
1965 "WHILEM_A_min", /* REGNODE_MAX +0x0b */
1966 "WHILEM_A_min_fail", /* REGNODE_MAX +0x0c */
1967 "WHILEM_A_max", /* REGNODE_MAX +0x0d */
1968 "WHILEM_A_max_fail", /* REGNODE_MAX +0x0e */
1969 "WHILEM_B_min", /* REGNODE_MAX +0x0f */
1970 "WHILEM_B_min_fail", /* REGNODE_MAX +0x10 */
1971 "WHILEM_B_max", /* REGNODE_MAX +0x11 */
1972 "WHILEM_B_max_fail", /* REGNODE_MAX +0x12 */
1973 "BRANCH_next", /* REGNODE_MAX +0x13 */
1974 "BRANCH_next_fail", /* REGNODE_MAX +0x14 */
1975 "CURLYM_A", /* REGNODE_MAX +0x15 */
1976 "CURLYM_A_fail", /* REGNODE_MAX +0x16 */
1977 "CURLYM_B", /* REGNODE_MAX +0x17 */
1978 "CURLYM_B_fail", /* REGNODE_MAX +0x18 */
1979 "IFMATCH_A", /* REGNODE_MAX +0x19 */
1980 "IFMATCH_A_fail", /* REGNODE_MAX +0x1a */
21cbe009
DM
1981 "CURLY_B_min", /* REGNODE_MAX +0x1b */
1982 "CURLY_B_min_fail", /* REGNODE_MAX +0x1c */
1983 "CURLY_B_max", /* REGNODE_MAX +0x1d */
1984 "CURLY_B_max_fail", /* REGNODE_MAX +0x1e */
1985 "COMMIT_next", /* REGNODE_MAX +0x1f */
1986 "COMMIT_next_fail", /* REGNODE_MAX +0x20 */
1987 "MARKPOINT_next", /* REGNODE_MAX +0x21 */
1988 "MARKPOINT_next_fail", /* REGNODE_MAX +0x22 */
1989 "SKIP_next", /* REGNODE_MAX +0x23 */
1990 "SKIP_next_fail", /* REGNODE_MAX +0x24 */
1991 "CUTGROUP_next", /* REGNODE_MAX +0x25 */
1992 "CUTGROUP_next_fail", /* REGNODE_MAX +0x26 */
1993 "KEEPS_next", /* REGNODE_MAX +0x27 */
1994 "KEEPS_next_fail", /* REGNODE_MAX +0x28 */
885f9e59 1995};
22429478 1996#endif /* DOINIT */
d09b2d29 1997
f7819f85
A
1998/* PL_reg_extflags_name[] - Opcode/state names in string form, for debugging */
1999
2000#ifndef DOINIT
2001EXTCONST char * PL_reg_extflags_name[];
2002#else
2003EXTCONST char * const PL_reg_extflags_name[] = {
d262c0c7 2004 /* Bits in extflags defined: 11111111111111110000111111111111 */
52d81aa8
NC
2005 "MULTILINE", /* 0x00000001 */
2006 "SINGLELINE", /* 0x00000002 */
2007 "FOLD", /* 0x00000004 */
2008 "EXTENDED", /* 0x00000008 */
334afb3e 2009 "EXTENDED_MORE", /* 0x00000010 */
e3b64d84
KW
2010 "NOCAPTURE", /* 0x00000020 */
2011 "KEEPCOPY", /* 0x00000040 */
2012 "CHARSET0", /* 0x00000080 : "CHARSET" - 0x00000380 */
2013 "CHARSET1", /* 0x00000100 : "CHARSET" - 0x00000380 */
2014 "CHARSET2", /* 0x00000200 : "CHARSET" - 0x00000380 */
d262c0c7
KW
2015 "STRICT", /* 0x00000400 */
2016 "SPLIT", /* 0x00000800 */
1d32d911
KW
2017 "UNUSED_BIT_12", /* 0x00001000 */
2018 "UNUSED_BIT_13", /* 0x00002000 */
2019 "UNUSED_BIT_14", /* 0x00004000 */
a3b51d37
KW
2020 "UNUSED_BIT_15", /* 0x00008000 */
2021 "NO_INPLACE_SUBST", /* 0x00010000 */
2022 "EVAL_SEEN", /* 0x00020000 */
ee273784 2023 "UNBOUNDED_QUANTIFIER_SEEN",/* 0x00040000 */
e795e964 2024 "CHECK_ALL", /* 0x00080000 */
52d81aa8
NC
2025 "MATCH_UTF8", /* 0x00100000 */
2026 "USE_INTUIT_NOML", /* 0x00200000 */
2027 "USE_INTUIT_ML", /* 0x00400000 */
2028 "INTUIT_TAIL", /* 0x00800000 */
a3b51d37 2029 "IS_ANCHORED", /* 0x01000000 */
52d81aa8
NC
2030 "COPY_DONE", /* 0x02000000 */
2031 "TAINTED_SEEN", /* 0x04000000 */
2032 "TAINTED", /* 0x08000000 */
2033 "START_ONLY", /* 0x10000000 */
dbc200c5 2034 "SKIPWHITE", /* 0x20000000 */
52d81aa8
NC
2035 "WHITE", /* 0x40000000 */
2036 "NULL", /* 0x80000000 */
f7819f85
A
2037};
2038#endif /* DOINIT */
2039
adc2d0c9
JH
2040#ifdef DEBUGGING
2041# define REG_EXTFLAGS_NAME_SIZE 32
2042#endif
2043
337ff307
YO
2044/* PL_reg_intflags_name[] - Opcode/state names in string form, for debugging */
2045
2046#ifndef DOINIT
2047EXTCONST char * PL_reg_intflags_name[];
2048#else
2049EXTCONST char * const PL_reg_intflags_name[] = {
b8f6efdd
YO
2050 "SKIP", /* 0x00000001 - PREGf_SKIP */
2051 "IMPLICIT", /* 0x00000002 - PREGf_IMPLICIT - Converted .* to ^.* */
2052 "NAUGHTY", /* 0x00000004 - PREGf_NAUGHTY - how exponential is this pattern? */
2053 "VERBARG_SEEN", /* 0x00000008 - PREGf_VERBARG_SEEN */
2054 "CUTGROUP_SEEN", /* 0x00000010 - PREGf_CUTGROUP_SEEN */
2055 "USE_RE_EVAL", /* 0x00000020 - PREGf_USE_RE_EVAL - compiled with "use re 'eval'" */
58430ea8 2056 "NOSCAN", /* 0x00000040 - PREGf_NOSCAN */
58430ea8
YO
2057 "GPOS_SEEN", /* 0x00000100 - PREGf_GPOS_SEEN */
2058 "GPOS_FLOAT", /* 0x00000200 - PREGf_GPOS_FLOAT */
d3d47aac
YO
2059 "ANCH_MBOL", /* 0x00000400 - PREGf_ANCH_MBOL */
2060 "ANCH_SBOL", /* 0x00000800 - PREGf_ANCH_SBOL */
2061 "ANCH_GPOS", /* 0x00001000 - PREGf_ANCH_GPOS */
d5a00e4a 2062 "RECURSE_SEEN", /* 0x00002000 - PREGf_RECURSE_SEEN */
337ff307
YO
2063};
2064#endif /* DOINIT */
2065
adc2d0c9 2066#ifdef DEBUGGING
d5a00e4a 2067# define REG_INTFLAGS_NAME_SIZE 13
adc2d0c9
JH
2068#endif
2069
f9ef50a7 2070/* The following have no fixed length. U8 so we can do strchr() on it. */
ded4dd2a 2071#define REGNODE_VARIES(node) (PL_varies_bitmask[(node) >> 3] & (1 << ((node) & 7)))
e52fc539 2072
f9ef50a7 2073#ifndef DOINIT
ded4dd2a 2074EXTCONST U8 PL_varies[] __attribute__deprecated__;
f9ef50a7 2075#else
ded4dd2a 2076EXTCONST U8 PL_varies[] __attribute__deprecated__ = {
62e6ef33 2077 CLUMP, BRANCH, STAR, PLUS, CURLY, CURLYN, CURLYM, CURLYX, WHILEM, REF,
016b7209 2078 REFF, REFFL, REFFU, REFFA, REFN, REFFN, REFFLN, REFFUN, REFFAN,
d3d47aac 2079 BRANCHJ, SUSPEND, IFTHEN,
f9ef50a7
NC
2080 0
2081};
2082#endif /* DOINIT */
2083
ded4dd2a
NC
2084#ifndef DOINIT
2085EXTCONST U8 PL_varies_bitmask[];
2086#else
2087EXTCONST U8 PL_varies_bitmask[] = {
7af55186 2088 0x00, 0x00, 0x00, 0x00, 0xC0, 0x00, 0x00, 0xE0, 0x0F, 0xFF, 0xCB, 0x00, 0x00, 0x00
ded4dd2a
NC
2089};
2090#endif /* DOINIT */
2091
f9ef50a7
NC
2092/* The following always have a length of 1. U8 we can do strchr() on it. */
2093/* (Note that length 1 means "one character" under UTF8, not "one octet".) */
ded4dd2a 2094#define REGNODE_SIMPLE(node) (PL_simple_bitmask[(node) >> 3] & (1 << ((node) & 7)))
e52fc539 2095
f9ef50a7 2096#ifndef DOINIT
ded4dd2a 2097EXTCONST U8 PL_simple[] __attribute__deprecated__;
f9ef50a7 2098#else
ded4dd2a 2099EXTCONST U8 PL_simple[] __attribute__deprecated__ = {
6966a05b 2100 REG_ANY, SANY, ANYOF, ANYOFD, ANYOFL, ANYOFPOSIXL, ANYOFH, ANYOFHb,
34924db0 2101 ANYOFHr, ANYOFHs, ANYOFR, ANYOFRb, ANYOFM, NANYOFM, POSIXD, POSIXL,
86451f01 2102 POSIXU, POSIXA, NPOSIXD, NPOSIXL, NPOSIXU, NPOSIXA, REGEX_SET,
f9ef50a7
NC
2103 0
2104};
2105#endif /* DOINIT */
2106
ded4dd2a
NC
2107#ifndef DOINIT
2108EXTCONST U8 PL_simple_bitmask[];
2109#else
2110EXTCONST U8 PL_simple_bitmask[] = {
271c3af7 2111 0x00, 0x00, 0xFF, 0xFF, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40
ded4dd2a
NC
2112};
2113#endif /* DOINIT */
2114
938090ac
KW
2115/* Is 'op', known to be of type EXACT, folding? */
2116#define isEXACTFish(op) (__ASSERT_(PL_regkind[op] == EXACT) (PL_EXACTFish_bitmask & (1U << (op - EXACT))))
2117
2118/* Do only UTF-8 target strings match 'op', known to be of type EXACT? */
2119#define isEXACT_REQ8(op) (__ASSERT_(PL_regkind[op] == EXACT) (PL_EXACT_REQ8_bitmask & (1U << (op - EXACT))))
2120
2121#ifndef DOINIT
2122EXTCONST U32 PL_EXACTFish_bitmask;
2123EXTCONST U32 PL_EXACT_REQ8_bitmask;
2124#else
2125EXTCONST U32 PL_EXACTFish_bitmask = 0x33F8;
2126EXTCONST U32 PL_EXACT_REQ8_bitmask = 0x1E00;
2127#endif /* DOINIT */
2128
33b57041
KW
2129#endif /* defined(PERL_CORE) || defined(PERL_EXT_RE_BUILD) */
2130
37442d52 2131/* ex: set ro: */