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