Commit | Line | Data |
---|---|---|
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 | ||
0a4db386 YO |
9 | #define REGNODE_MAX 74 |
10 | #define REGMATCH_STATE_MAX 104 | |
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. */ | |
53 | #define CURLYN 41 /* 0x29 Match next-after-this simple thing */ | |
54 | #define CURLYM 42 /* 0x2a Match this medium-complex thing {n,m} times. */ | |
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 */ | |
6bda09f9 YO |
77 | #define RECURSE 65 /* 0x41 recurse to paren arg1 at (signed) ofs arg2 */ |
78 | #define SRECURSE 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 YO |
82 | #define NGROUPP 70 /* 0x46 Whether the group matched. */ |
83 | #define RECURSEP 71 /* 0x47 Whether we are in a specific recurse. */ | |
84 | #define DEFINEP 72 /* 0x48 Never execute directly. */ | |
85 | #define OPTIMIZED 73 /* 0x49 Placeholder for dump. */ | |
86 | #define PSEUDO 74 /* 0x4a Pseudo opcode for internal use. */ | |
03363afd YO |
87 | |
88 | /* ------------ States ------------- */ | |
89 | ||
0a4db386 YO |
90 | #define TRIE_next 75 /* 0x4b Regmatch state for TRIE */ |
91 | #define TRIE_next_fail 76 /* 0x4c Regmatch state for TRIE */ | |
92 | #define EVAL_AB 77 /* 0x4d Regmatch state for EVAL */ | |
93 | #define EVAL_AB_fail 78 /* 0x4e Regmatch state for EVAL */ | |
94 | #define CURLYX_end 79 /* 0x4f Regmatch state for CURLYX */ | |
95 | #define CURLYX_end_fail 80 /* 0x50 Regmatch state for CURLYX */ | |
96 | #define WHILEM_A_pre 81 /* 0x51 Regmatch state for WHILEM */ | |
97 | #define WHILEM_A_pre_fail 82 /* 0x52 Regmatch state for WHILEM */ | |
98 | #define WHILEM_A_min 83 /* 0x53 Regmatch state for WHILEM */ | |
99 | #define WHILEM_A_min_fail 84 /* 0x54 Regmatch state for WHILEM */ | |
100 | #define WHILEM_A_max 85 /* 0x55 Regmatch state for WHILEM */ | |
101 | #define WHILEM_A_max_fail 86 /* 0x56 Regmatch state for WHILEM */ | |
102 | #define WHILEM_B_min 87 /* 0x57 Regmatch state for WHILEM */ | |
103 | #define WHILEM_B_min_fail 88 /* 0x58 Regmatch state for WHILEM */ | |
104 | #define WHILEM_B_max 89 /* 0x59 Regmatch state for WHILEM */ | |
105 | #define WHILEM_B_max_fail 90 /* 0x5a Regmatch state for WHILEM */ | |
106 | #define BRANCH_next 91 /* 0x5b Regmatch state for BRANCH */ | |
107 | #define BRANCH_next_fail 92 /* 0x5c Regmatch state for BRANCH */ | |
108 | #define CURLYM_A 93 /* 0x5d Regmatch state for CURLYM */ | |
109 | #define CURLYM_A_fail 94 /* 0x5e Regmatch state for CURLYM */ | |
110 | #define CURLYM_B 95 /* 0x5f Regmatch state for CURLYM */ | |
111 | #define CURLYM_B_fail 96 /* 0x60 Regmatch state for CURLYM */ | |
112 | #define IFMATCH_A 97 /* 0x61 Regmatch state for IFMATCH */ | |
113 | #define IFMATCH_A_fail 98 /* 0x62 Regmatch state for IFMATCH */ | |
114 | #define CURLY_B_min_known 99 /* 0x63 Regmatch state for CURLY */ | |
115 | #define CURLY_B_min_known_fail 100 /* 0x64 Regmatch state for CURLY */ | |
116 | #define CURLY_B_min 101 /* 0x65 Regmatch state for CURLY */ | |
117 | #define CURLY_B_min_fail 102 /* 0x66 Regmatch state for CURLY */ | |
118 | #define CURLY_B_max 103 /* 0x67 Regmatch state for CURLY */ | |
119 | #define CURLY_B_max_fail 104 /* 0x68 Regmatch state for CURLY */ | |
03363afd | 120 | |
6bda09f9 | 121 | /* PL_regkind[] What type of regop or state is this. */ |
d09b2d29 IZ |
122 | |
123 | #ifndef DOINIT | |
22c35a8c | 124 | EXTCONST U8 PL_regkind[]; |
d09b2d29 | 125 | #else |
22c35a8c | 126 | EXTCONST U8 PL_regkind[] = { |
0a4db386 YO |
127 | END, /* END */ |
128 | END, /* SUCCEED */ | |
129 | BOL, /* BOL */ | |
130 | BOL, /* MBOL */ | |
131 | BOL, /* SBOL */ | |
132 | EOL, /* EOS */ | |
133 | EOL, /* EOL */ | |
134 | EOL, /* MEOL */ | |
135 | EOL, /* SEOL */ | |
136 | BOUND, /* BOUND */ | |
137 | BOUND, /* BOUNDL */ | |
138 | NBOUND, /* NBOUND */ | |
139 | NBOUND, /* NBOUNDL */ | |
140 | GPOS, /* GPOS */ | |
141 | REG_ANY, /* REG_ANY */ | |
142 | REG_ANY, /* SANY */ | |
143 | REG_ANY, /* CANY */ | |
144 | ANYOF, /* ANYOF */ | |
145 | ALNUM, /* ALNUM */ | |
146 | ALNUM, /* ALNUML */ | |
147 | NALNUM, /* NALNUM */ | |
148 | NALNUM, /* NALNUML */ | |
149 | SPACE, /* SPACE */ | |
150 | SPACE, /* SPACEL */ | |
151 | NSPACE, /* NSPACE */ | |
152 | NSPACE, /* NSPACEL */ | |
153 | DIGIT, /* DIGIT */ | |
154 | DIGIT, /* DIGITL */ | |
155 | NDIGIT, /* NDIGIT */ | |
156 | NDIGIT, /* NDIGITL */ | |
157 | CLUMP, /* CLUMP */ | |
158 | BRANCH, /* BRANCH */ | |
159 | BACK, /* BACK */ | |
160 | EXACT, /* EXACT */ | |
161 | EXACT, /* EXACTF */ | |
162 | EXACT, /* EXACTFL */ | |
163 | NOTHING, /* NOTHING */ | |
164 | NOTHING, /* TAIL */ | |
165 | STAR, /* STAR */ | |
166 | PLUS, /* PLUS */ | |
167 | CURLY, /* CURLY */ | |
168 | CURLY, /* CURLYN */ | |
169 | CURLY, /* CURLYM */ | |
170 | CURLY, /* CURLYX */ | |
171 | WHILEM, /* WHILEM */ | |
172 | OPEN, /* OPEN */ | |
173 | CLOSE, /* CLOSE */ | |
174 | REF, /* REF */ | |
175 | REF, /* REFF */ | |
176 | REF, /* REFFL */ | |
177 | BRANCHJ, /* IFMATCH */ | |
178 | BRANCHJ, /* UNLESSM */ | |
179 | BRANCHJ, /* SUSPEND */ | |
180 | BRANCHJ, /* IFTHEN */ | |
181 | GROUPP, /* GROUPP */ | |
182 | LONGJMP, /* LONGJMP */ | |
183 | BRANCHJ, /* BRANCHJ */ | |
184 | EVAL, /* EVAL */ | |
185 | MINMOD, /* MINMOD */ | |
186 | LOGICAL, /* LOGICAL */ | |
187 | BRANCHJ, /* RENUM */ | |
188 | TRIE, /* TRIE */ | |
189 | TRIE, /* TRIEC */ | |
190 | TRIE, /* AHOCORASICK */ | |
191 | TRIE, /* AHOCORASICKC */ | |
192 | RECURSE, /* RECURSE */ | |
193 | RECURSE, /* SRECURSE */ | |
194 | NREF, /* NREF */ | |
195 | NREF, /* NREFF */ | |
196 | NREF, /* NREFFL */ | |
197 | NGROUPP, /* NGROUPP */ | |
198 | RECURSEP, /* RECURSEP */ | |
199 | DEFINEP, /* DEFINEP */ | |
200 | NOTHING, /* OPTIMIZED */ | |
201 | PSEUDO, /* PSEUDO */ | |
03363afd | 202 | /* ------------ States ------------- */ |
0a4db386 YO |
203 | TRIE, /* TRIE_next */ |
204 | TRIE, /* TRIE_next_fail */ | |
205 | EVAL, /* EVAL_AB */ | |
206 | EVAL, /* EVAL_AB_fail */ | |
207 | CURLYX, /* CURLYX_end */ | |
208 | CURLYX, /* CURLYX_end_fail */ | |
209 | WHILEM, /* WHILEM_A_pre */ | |
210 | WHILEM, /* WHILEM_A_pre_fail */ | |
211 | WHILEM, /* WHILEM_A_min */ | |
212 | WHILEM, /* WHILEM_A_min_fail */ | |
213 | WHILEM, /* WHILEM_A_max */ | |
214 | WHILEM, /* WHILEM_A_max_fail */ | |
215 | WHILEM, /* WHILEM_B_min */ | |
216 | WHILEM, /* WHILEM_B_min_fail */ | |
217 | WHILEM, /* WHILEM_B_max */ | |
218 | WHILEM, /* WHILEM_B_max_fail */ | |
219 | BRANCH, /* BRANCH_next */ | |
220 | BRANCH, /* BRANCH_next_fail */ | |
221 | CURLYM, /* CURLYM_A */ | |
222 | CURLYM, /* CURLYM_A_fail */ | |
223 | CURLYM, /* CURLYM_B */ | |
224 | CURLYM, /* CURLYM_B_fail */ | |
225 | IFMATCH, /* IFMATCH_A */ | |
226 | IFMATCH, /* IFMATCH_A_fail */ | |
227 | CURLY, /* CURLY_B_min_known */ | |
228 | CURLY, /* CURLY_B_min_known_fail */ | |
229 | CURLY, /* CURLY_B_min */ | |
230 | CURLY, /* CURLY_B_min_fail */ | |
231 | CURLY, /* CURLY_B_max */ | |
232 | CURLY, /* CURLY_B_max_fail */ | |
d09b2d29 IZ |
233 | }; |
234 | #endif | |
235 | ||
6bda09f9 | 236 | /* regarglen[] - How large is the argument part of the node (in regnodes) */ |
d09b2d29 IZ |
237 | |
238 | #ifdef REG_COMP_C | |
29de9391 | 239 | static const U8 regarglen[] = { |
03363afd YO |
240 | 0, /* END */ |
241 | 0, /* SUCCEED */ | |
242 | 0, /* BOL */ | |
243 | 0, /* MBOL */ | |
244 | 0, /* SBOL */ | |
245 | 0, /* EOS */ | |
246 | 0, /* EOL */ | |
247 | 0, /* MEOL */ | |
248 | 0, /* SEOL */ | |
249 | 0, /* BOUND */ | |
250 | 0, /* BOUNDL */ | |
251 | 0, /* NBOUND */ | |
252 | 0, /* NBOUNDL */ | |
253 | 0, /* GPOS */ | |
254 | 0, /* REG_ANY */ | |
255 | 0, /* SANY */ | |
256 | 0, /* CANY */ | |
257 | 0, /* ANYOF */ | |
258 | 0, /* ALNUM */ | |
259 | 0, /* ALNUML */ | |
260 | 0, /* NALNUM */ | |
261 | 0, /* NALNUML */ | |
262 | 0, /* SPACE */ | |
263 | 0, /* SPACEL */ | |
264 | 0, /* NSPACE */ | |
265 | 0, /* NSPACEL */ | |
266 | 0, /* DIGIT */ | |
267 | 0, /* DIGITL */ | |
268 | 0, /* NDIGIT */ | |
269 | 0, /* NDIGITL */ | |
270 | 0, /* CLUMP */ | |
271 | 0, /* BRANCH */ | |
272 | 0, /* BACK */ | |
273 | 0, /* EXACT */ | |
274 | 0, /* EXACTF */ | |
275 | 0, /* EXACTFL */ | |
276 | 0, /* NOTHING */ | |
277 | 0, /* TAIL */ | |
278 | 0, /* STAR */ | |
279 | 0, /* PLUS */ | |
280 | EXTRA_SIZE(struct regnode_2), /* CURLY */ | |
281 | EXTRA_SIZE(struct regnode_2), /* CURLYN */ | |
282 | EXTRA_SIZE(struct regnode_2), /* CURLYM */ | |
283 | EXTRA_SIZE(struct regnode_2), /* CURLYX */ | |
284 | 0, /* WHILEM */ | |
285 | EXTRA_SIZE(struct regnode_1), /* OPEN */ | |
286 | EXTRA_SIZE(struct regnode_1), /* CLOSE */ | |
287 | EXTRA_SIZE(struct regnode_1), /* REF */ | |
288 | EXTRA_SIZE(struct regnode_1), /* REFF */ | |
289 | EXTRA_SIZE(struct regnode_1), /* REFFL */ | |
290 | EXTRA_SIZE(struct regnode_1), /* IFMATCH */ | |
291 | EXTRA_SIZE(struct regnode_1), /* UNLESSM */ | |
292 | EXTRA_SIZE(struct regnode_1), /* SUSPEND */ | |
293 | EXTRA_SIZE(struct regnode_1), /* IFTHEN */ | |
294 | EXTRA_SIZE(struct regnode_1), /* GROUPP */ | |
295 | EXTRA_SIZE(struct regnode_1), /* LONGJMP */ | |
296 | EXTRA_SIZE(struct regnode_1), /* BRANCHJ */ | |
297 | EXTRA_SIZE(struct regnode_1), /* EVAL */ | |
298 | 0, /* MINMOD */ | |
299 | 0, /* LOGICAL */ | |
300 | EXTRA_SIZE(struct regnode_1), /* RENUM */ | |
301 | EXTRA_SIZE(struct regnode_1), /* TRIE */ | |
302 | EXTRA_SIZE(struct regnode_charclass), /* TRIEC */ | |
303 | EXTRA_SIZE(struct regnode_1), /* AHOCORASICK */ | |
304 | EXTRA_SIZE(struct regnode_charclass), /* AHOCORASICKC */ | |
6bda09f9 YO |
305 | EXTRA_SIZE(struct regnode_2L), /* RECURSE */ |
306 | 0, /* SRECURSE */ | |
81714fb9 YO |
307 | EXTRA_SIZE(struct regnode_1), /* NREF */ |
308 | EXTRA_SIZE(struct regnode_1), /* NREFF */ | |
309 | EXTRA_SIZE(struct regnode_1), /* NREFFL */ | |
0a4db386 YO |
310 | EXTRA_SIZE(struct regnode_1), /* NGROUPP */ |
311 | EXTRA_SIZE(struct regnode_1), /* RECURSEP */ | |
312 | EXTRA_SIZE(struct regnode_1), /* DEFINEP */ | |
03363afd YO |
313 | 0, /* OPTIMIZED */ |
314 | 0, /* PSEUDO */ | |
d09b2d29 IZ |
315 | }; |
316 | ||
6bda09f9 YO |
317 | /* reg_off_by_arg[] - Which argument holds the offset to the next node */ |
318 | ||
29de9391 | 319 | static const char reg_off_by_arg[] = { |
03363afd YO |
320 | 0, /* END */ |
321 | 0, /* SUCCEED */ | |
322 | 0, /* BOL */ | |
323 | 0, /* MBOL */ | |
324 | 0, /* SBOL */ | |
325 | 0, /* EOS */ | |
326 | 0, /* EOL */ | |
327 | 0, /* MEOL */ | |
328 | 0, /* SEOL */ | |
329 | 0, /* BOUND */ | |
330 | 0, /* BOUNDL */ | |
331 | 0, /* NBOUND */ | |
332 | 0, /* NBOUNDL */ | |
333 | 0, /* GPOS */ | |
334 | 0, /* REG_ANY */ | |
335 | 0, /* SANY */ | |
336 | 0, /* CANY */ | |
337 | 0, /* ANYOF */ | |
338 | 0, /* ALNUM */ | |
339 | 0, /* ALNUML */ | |
340 | 0, /* NALNUM */ | |
341 | 0, /* NALNUML */ | |
342 | 0, /* SPACE */ | |
343 | 0, /* SPACEL */ | |
344 | 0, /* NSPACE */ | |
345 | 0, /* NSPACEL */ | |
346 | 0, /* DIGIT */ | |
347 | 0, /* DIGITL */ | |
348 | 0, /* NDIGIT */ | |
349 | 0, /* NDIGITL */ | |
350 | 0, /* CLUMP */ | |
351 | 0, /* BRANCH */ | |
352 | 0, /* BACK */ | |
353 | 0, /* EXACT */ | |
354 | 0, /* EXACTF */ | |
355 | 0, /* EXACTFL */ | |
356 | 0, /* NOTHING */ | |
357 | 0, /* TAIL */ | |
358 | 0, /* STAR */ | |
359 | 0, /* PLUS */ | |
360 | 0, /* CURLY */ | |
361 | 0, /* CURLYN */ | |
362 | 0, /* CURLYM */ | |
363 | 0, /* CURLYX */ | |
364 | 0, /* WHILEM */ | |
365 | 0, /* OPEN */ | |
366 | 0, /* CLOSE */ | |
367 | 0, /* REF */ | |
368 | 0, /* REFF */ | |
369 | 0, /* REFFL */ | |
370 | 2, /* IFMATCH */ | |
371 | 2, /* UNLESSM */ | |
372 | 1, /* SUSPEND */ | |
373 | 1, /* IFTHEN */ | |
374 | 0, /* GROUPP */ | |
375 | 1, /* LONGJMP */ | |
376 | 1, /* BRANCHJ */ | |
377 | 0, /* EVAL */ | |
378 | 0, /* MINMOD */ | |
379 | 0, /* LOGICAL */ | |
380 | 1, /* RENUM */ | |
381 | 0, /* TRIE */ | |
382 | 0, /* TRIEC */ | |
383 | 0, /* AHOCORASICK */ | |
384 | 0, /* AHOCORASICKC */ | |
6bda09f9 YO |
385 | 0, /* RECURSE */ |
386 | 0, /* SRECURSE */ | |
81714fb9 YO |
387 | 0, /* NREF */ |
388 | 0, /* NREFF */ | |
389 | 0, /* NREFFL */ | |
0a4db386 YO |
390 | 0, /* NGROUPP */ |
391 | 0, /* RECURSEP */ | |
392 | 0, /* DEFINEP */ | |
03363afd YO |
393 | 0, /* OPTIMIZED */ |
394 | 0, /* PSEUDO */ | |
d09b2d29 | 395 | }; |
885f9e59 | 396 | |
6bda09f9 YO |
397 | /* reg_name[] - Opcode/state names in string form, for debugging */ |
398 | ||
885f9e59 | 399 | #ifdef DEBUGGING |
6d9c9890 | 400 | const char * reg_name[] = { |
03363afd YO |
401 | "END", /* 0000 */ |
402 | "SUCCEED", /* 0x01 */ | |
403 | "BOL", /* 0x02 */ | |
404 | "MBOL", /* 0x03 */ | |
405 | "SBOL", /* 0x04 */ | |
406 | "EOS", /* 0x05 */ | |
407 | "EOL", /* 0x06 */ | |
408 | "MEOL", /* 0x07 */ | |
409 | "SEOL", /* 0x08 */ | |
410 | "BOUND", /* 0x09 */ | |
411 | "BOUNDL", /* 0x0a */ | |
412 | "NBOUND", /* 0x0b */ | |
413 | "NBOUNDL", /* 0x0c */ | |
414 | "GPOS", /* 0x0d */ | |
415 | "REG_ANY", /* 0x0e */ | |
416 | "SANY", /* 0x0f */ | |
417 | "CANY", /* 0x10 */ | |
418 | "ANYOF", /* 0x11 */ | |
419 | "ALNUM", /* 0x12 */ | |
420 | "ALNUML", /* 0x13 */ | |
421 | "NALNUM", /* 0x14 */ | |
422 | "NALNUML", /* 0x15 */ | |
423 | "SPACE", /* 0x16 */ | |
424 | "SPACEL", /* 0x17 */ | |
425 | "NSPACE", /* 0x18 */ | |
426 | "NSPACEL", /* 0x19 */ | |
427 | "DIGIT", /* 0x1a */ | |
428 | "DIGITL", /* 0x1b */ | |
429 | "NDIGIT", /* 0x1c */ | |
430 | "NDIGITL", /* 0x1d */ | |
431 | "CLUMP", /* 0x1e */ | |
432 | "BRANCH", /* 0x1f */ | |
433 | "BACK", /* 0x20 */ | |
434 | "EXACT", /* 0x21 */ | |
435 | "EXACTF", /* 0x22 */ | |
436 | "EXACTFL", /* 0x23 */ | |
437 | "NOTHING", /* 0x24 */ | |
438 | "TAIL", /* 0x25 */ | |
439 | "STAR", /* 0x26 */ | |
440 | "PLUS", /* 0x27 */ | |
441 | "CURLY", /* 0x28 */ | |
442 | "CURLYN", /* 0x29 */ | |
443 | "CURLYM", /* 0x2a */ | |
444 | "CURLYX", /* 0x2b */ | |
445 | "WHILEM", /* 0x2c */ | |
446 | "OPEN", /* 0x2d */ | |
447 | "CLOSE", /* 0x2e */ | |
448 | "REF", /* 0x2f */ | |
449 | "REFF", /* 0x30 */ | |
450 | "REFFL", /* 0x31 */ | |
451 | "IFMATCH", /* 0x32 */ | |
452 | "UNLESSM", /* 0x33 */ | |
453 | "SUSPEND", /* 0x34 */ | |
454 | "IFTHEN", /* 0x35 */ | |
455 | "GROUPP", /* 0x36 */ | |
456 | "LONGJMP", /* 0x37 */ | |
457 | "BRANCHJ", /* 0x38 */ | |
458 | "EVAL", /* 0x39 */ | |
459 | "MINMOD", /* 0x3a */ | |
460 | "LOGICAL", /* 0x3b */ | |
461 | "RENUM", /* 0x3c */ | |
462 | "TRIE", /* 0x3d */ | |
463 | "TRIEC", /* 0x3e */ | |
464 | "AHOCORASICK", /* 0x3f */ | |
465 | "AHOCORASICKC", /* 0x40 */ | |
6bda09f9 YO |
466 | "RECURSE", /* 0x41 */ |
467 | "SRECURSE", /* 0x42 */ | |
81714fb9 YO |
468 | "NREF", /* 0x43 */ |
469 | "NREFF", /* 0x44 */ | |
470 | "NREFFL", /* 0x45 */ | |
0a4db386 YO |
471 | "NGROUPP", /* 0x46 */ |
472 | "RECURSEP", /* 0x47 */ | |
473 | "DEFINEP", /* 0x48 */ | |
474 | "OPTIMIZED", /* 0x49 */ | |
475 | "PSEUDO", /* 0x4a */ | |
03363afd | 476 | /* ------------ States ------------- */ |
0a4db386 YO |
477 | "TRIE_next", /* 0x4b */ |
478 | "TRIE_next_fail", /* 0x4c */ | |
479 | "EVAL_AB", /* 0x4d */ | |
480 | "EVAL_AB_fail", /* 0x4e */ | |
481 | "CURLYX_end", /* 0x4f */ | |
482 | "CURLYX_end_fail", /* 0x50 */ | |
483 | "WHILEM_A_pre", /* 0x51 */ | |
484 | "WHILEM_A_pre_fail", /* 0x52 */ | |
485 | "WHILEM_A_min", /* 0x53 */ | |
486 | "WHILEM_A_min_fail", /* 0x54 */ | |
487 | "WHILEM_A_max", /* 0x55 */ | |
488 | "WHILEM_A_max_fail", /* 0x56 */ | |
489 | "WHILEM_B_min", /* 0x57 */ | |
490 | "WHILEM_B_min_fail", /* 0x58 */ | |
491 | "WHILEM_B_max", /* 0x59 */ | |
492 | "WHILEM_B_max_fail", /* 0x5a */ | |
493 | "BRANCH_next", /* 0x5b */ | |
494 | "BRANCH_next_fail", /* 0x5c */ | |
495 | "CURLYM_A", /* 0x5d */ | |
496 | "CURLYM_A_fail", /* 0x5e */ | |
497 | "CURLYM_B", /* 0x5f */ | |
498 | "CURLYM_B_fail", /* 0x60 */ | |
499 | "IFMATCH_A", /* 0x61 */ | |
500 | "IFMATCH_A_fail", /* 0x62 */ | |
501 | "CURLY_B_min_known", /* 0x63 */ | |
502 | "CURLY_B_min_known_fail", /* 0x64 */ | |
503 | "CURLY_B_min", /* 0x65 */ | |
504 | "CURLY_B_min_fail", /* 0x66 */ | |
505 | "CURLY_B_max", /* 0x67 */ | |
506 | "CURLY_B_max_fail", /* 0x68 */ | |
885f9e59 | 507 | }; |
885f9e59 | 508 | #endif /* DEBUGGING */ |
03363afd YO |
509 | #else |
510 | #ifdef DEBUGGING | |
6d9c9890 | 511 | extern const char * reg_name[]; |
03363afd | 512 | #endif |
d09b2d29 IZ |
513 | #endif /* REG_COMP_C */ |
514 | ||
37442d52 | 515 | /* ex: set ro: */ |