xref: /freebsd/usr.bin/lex/initskel.c (revision 076b94438c7d42c1b4661ed1e12e3b12ca69361a)
1 /* $FreeBSD$ */
2 /* File created from flex.skl via mkskel.sh */
3 
4 #include "flexdef.h"
5 
6 const char *skel[] = {
7   "%# -*-C-*- vi: set ft=c:",
8   "%# This file is processed in several stages.",
9   "%# Here are the stages, as best as I can describe:",
10   "%#",
11   "%#   1. flex.skl is processed through GNU m4 during the",
12   "%#      pre-compilation stage of flex. Only macros starting",
13   "%#      with `m4_' are processed, and quoting is normal.",
14   "%#",
15   "%#   2. The preprocessed skeleton is translated verbatim into a",
16   "%#      C array, saved as \"skel.c\" and compiled into the flex binary.",
17   "%#",
18   "%#   3. At runtime, the skeleton is generated and filtered (again)",
19   "%#      through m4. Macros beginning with `m4_' will be processed.",
20   "%#      The quoting is \"[[\" and \"]]\" so we don't interfere with",
21   "%#      user code.",
22   "%# ",
23   "%# All generate macros for the m4 stage contain the text \"m4\" or \"M4\"",
24   "%# in them. This is to distinguish them from CPP macros.",
25   "%# The exception to this rule is YY_G, which is an m4 macro, ",
26   "%# but it needs to be remain short because it is used everywhere.",
27   "%#",
28   "/* A lexical scanner generated by flex */",
29   "",
30   "%#  Macros for preproc stage.",
31   "",
32   "",
33   "%# Macros for runtime processing stage.",
34   "m4_changecom",
35   "m4_changequote",
36   "m4_changequote([[, ]])",
37   "",
38   "%# ",
39   "%# Lines in this skeleton starting with a \"%\" character are \"control lines\"",
40   "%# and affect the generation of the scanner. The possible control codes are",
41   "%# listed and processed in misc.c.",
42   "%#",
43   "%#   %#  -  A comment. The current line is omitted from the generated scanner.",
44   "%#   %if-c++-only  -  The following lines are printed for C++ scanners ONLY.",
45   "%#   %if-c-only    -  The following lines are NOT printed for C++ scanners.",
46   "%#   %if-c-or-c++  -  The following lines are printed in BOTH C and C++ scanners.",
47   "%#   %if-reentrant     - Print for reentrant scanners.(push)",
48   "%#   %if-not-reentrant - Print for non-reentrant scanners. (push)",
49   "%#   %if-bison-bridge  - Print for bison-bridge. (push)",
50   "%#   %if-not-bison-bridge  - Print for non-bison-bridge. (push)",
51   "%#   %endif        - pop from the previous if code.",
52   "%#   %%  -  A stop-point, where code is inserted by flex.",
53   "%#          Each stop-point is numbered here and also in the code generator.",
54   "%#          (See gen.c, etc. for details.)",
55   "%#   %not-for-header  -  Begin code that should NOT appear in a \".h\" file.",
56   "%#   %ok-for-header   -  %c and %e are used for building a header file.",
57   "%#   %if-tables-serialization",
58   "%#",
59   "%#   All control-lines EXCEPT comment lines (\"%#\") will be inserted into",
60   "%#   the generated scanner as a C-style comment. This is to aid those who",
61   "%#   edit the skeleton.",
62   "%#",
63   "",
64   "%not-for-header",
65   "%if-c-only",
66   "%if-not-reentrant",
67   "m4_ifelse(M4_YY_PREFIX,yy,,",
68   "#define yy_create_buffer M4_YY_PREFIX[[_create_buffer]]",
69   "#define yy_delete_buffer M4_YY_PREFIX[[_delete_buffer]]",
70   "#define yy_flex_debug M4_YY_PREFIX[[_flex_debug]]",
71   "#define yy_init_buffer M4_YY_PREFIX[[_init_buffer]]",
72   "#define yy_flush_buffer M4_YY_PREFIX[[_flush_buffer]]",
73   "#define yy_load_buffer_state M4_YY_PREFIX[[_load_buffer_state]]",
74   "#define yy_switch_to_buffer M4_YY_PREFIX[[_switch_to_buffer]]",
75   "#define yyin M4_YY_PREFIX[[in]]",
76   "#define yyleng M4_YY_PREFIX[[leng]]",
77   "#define yylex M4_YY_PREFIX[[lex]]",
78   "#define yylineno M4_YY_PREFIX[[lineno]]",
79   "#define yyout M4_YY_PREFIX[[out]]",
80   "#define yyrestart M4_YY_PREFIX[[restart]]",
81   "#define yytext M4_YY_PREFIX[[text]]",
82   "#define yywrap M4_YY_PREFIX[[wrap]]",
83   "#define yyalloc M4_YY_PREFIX[[alloc]]",
84   "#define yyrealloc M4_YY_PREFIX[[realloc]]",
85   "#define yyfree M4_YY_PREFIX[[free]]",
86   ")",
87   "%endif",
88   "%endif",
89   "%ok-for-header",
90   "",
91   "#define FLEX_SCANNER",
92   "#define YY_FLEX_MAJOR_VERSION 2",
93   "#define YY_FLEX_MINOR_VERSION 5",
94   "#define YY_FLEX_SUBMINOR_VERSION 37",
95   "#if YY_FLEX_SUBMINOR_VERSION > 0",
96   "#define FLEX_BETA",
97   "#endif",
98   "",
99   "%# Some negated symbols",
100   "m4_ifdef( [[M4_YY_IN_HEADER]], , [[m4_define([[M4_YY_NOT_IN_HEADER]], [[]])]])",
101   "m4_ifdef( [[M4_YY_REENTRANT]], , [[m4_define([[M4_YY_NOT_REENTRANT]], [[]])]])",
102   "",
103   "%# This is the m4 way to say \"(stack_used || is_reentrant)",
104   "m4_ifdef( [[M4_YY_STACK_USED]], [[m4_define([[M4_YY_HAS_START_STACK_VARS]])]])",
105   "m4_ifdef( [[M4_YY_REENTRANT]],  [[m4_define([[M4_YY_HAS_START_STACK_VARS]])]])",
106   "",
107   "%# Prefixes.",
108   "%# The complexity here is necessary so that m4 preserves",
109   "%# the argument lists to each C function.",
110   "",
111   "",
112   "m4_ifdef( [[M4_YY_PREFIX]],, [[m4_define([[M4_YY_PREFIX]], [[yy]])]])",
113   "",
114   "",
115   "",
116   "%if-c++-only",
117   "    /* The c++ scanner is a mess. The FlexLexer.h header file relies on the",
118   "     * following macro. This is required in order to pass the c++-multiple-scanners",
119   "     * test in the regression suite. We get reports that it breaks inheritance.",
120   "     * We will address this in a future release of flex, or omit the C++ scanner",
121   "     * altogether.",
122   "     */",
123   "    #define yyFlexLexer M4_YY_PREFIX[[FlexLexer]]",
124   "%endif",
125   "",
126   "%if-c-only",
127   "    m4_define(yy[[_create_buffer]], [[M4_YY_PREFIX[[_create_buffer]]m4_ifelse($#,0,,[[($@)]])]])",
128   "    m4_define(yy[[_delete_buffer]], [[M4_YY_PREFIX[[_delete_buffer]]m4_ifelse($#,0,,[[($@)]])]])",
129   "    m4_define(yy[[_scan_buffer]], [[M4_YY_PREFIX[[_scan_buffer]]m4_ifelse($#,0,,[[($@)]])]])",
130   "    m4_define(yy[[_scan_string]], [[M4_YY_PREFIX[[_scan_string]]m4_ifelse($#,0,,[[($@)]])]])",
131   "    m4_define(yy[[_scan_bytes]], [[M4_YY_PREFIX[[_scan_bytes]]m4_ifelse($#,0,,[[($@)]])]])",
132   "    m4_define(yy[[_init_buffer]], [[M4_YY_PREFIX[[_init_buffer]]m4_ifelse($#,0,,[[($@)]])]])",
133   "    m4_define(yy[[_flush_buffer]], [[M4_YY_PREFIX[[_flush_buffer]]m4_ifelse($#,0,,[[($@)]])]])",
134   "    m4_define(yy[[_load_buffer_state]], [[M4_YY_PREFIX[[_load_buffer_state]]m4_ifelse($#,0,,[[($@)]])]])",
135   "    m4_define(yy[[_switch_to_buffer]], [[M4_YY_PREFIX[[_switch_to_buffer]]m4_ifelse($#,0,,[[($@)]])]])",
136   "    m4_define(yy[[push_buffer_state]], [[M4_YY_PREFIX[[push_buffer_state]]m4_ifelse($#,0,,[[($@)]])]])",
137   "    m4_define(yy[[pop_buffer_state]], [[M4_YY_PREFIX[[pop_buffer_state]]m4_ifelse($#,0,,[[($@)]])]])",
138   "    m4_define(yy[[ensure_buffer_stack]], [[M4_YY_PREFIX[[ensure_buffer_stack]]m4_ifelse($#,0,,[[($@)]])]])",
139   "    m4_define(yy[[lex]], [[M4_YY_PREFIX[[lex]]m4_ifelse($#,0,,[[($@)]])]])",
140   "    m4_define(yy[[restart]], [[M4_YY_PREFIX[[restart]]m4_ifelse($#,0,,[[($@)]])]])",
141   "    m4_define(yy[[lex_init]], [[M4_YY_PREFIX[[lex_init]]m4_ifelse($#,0,,[[($@)]])]])",
142   "    m4_define(yy[[lex_init_extra]], [[M4_YY_PREFIX[[lex_init_extra]]m4_ifelse($#,0,,[[($@)]])]])",
143   "    m4_define(yy[[lex_destroy]], [[M4_YY_PREFIX[[lex_destroy]]m4_ifelse($#,0,,[[($@)]])]])",
144   "    m4_define(yy[[get_debug]], [[M4_YY_PREFIX[[get_debug]]m4_ifelse($#,0,,[[($@)]])]])",
145   "    m4_define(yy[[set_debug]], [[M4_YY_PREFIX[[set_debug]]m4_ifelse($#,0,,[[($@)]])]])",
146   "    m4_define(yy[[get_extra]], [[M4_YY_PREFIX[[get_extra]]m4_ifelse($#,0,,[[($@)]])]])",
147   "    m4_define(yy[[set_extra]], [[M4_YY_PREFIX[[set_extra]]m4_ifelse($#,0,,[[($@)]])]])",
148   "    m4_define(yy[[get_in]], [[M4_YY_PREFIX[[get_in]]m4_ifelse($#,0,,[[($@)]])]])",
149   "    m4_define(yy[[set_in]], [[M4_YY_PREFIX[[set_in]]m4_ifelse($#,0,,[[($@)]])]])",
150   "    m4_define(yy[[get_out]], [[M4_YY_PREFIX[[get_out]]m4_ifelse($#,0,,[[($@)]])]])",
151   "    m4_define(yy[[set_out]], [[M4_YY_PREFIX[[set_out]]m4_ifelse($#,0,,[[($@)]])]])",
152   "    m4_define(yy[[get_leng]], [[M4_YY_PREFIX[[get_leng]]m4_ifelse($#,0,,[[($@)]])]])",
153   "    m4_define(yy[[get_text]], [[M4_YY_PREFIX[[get_text]]m4_ifelse($#,0,,[[($@)]])]])",
154   "    m4_define(yy[[get_lineno]], [[M4_YY_PREFIX[[get_lineno]]m4_ifelse($#,0,,[[($@)]])]])",
155   "    m4_define(yy[[set_lineno]], [[M4_YY_PREFIX[[set_lineno]]m4_ifelse($#,0,,[[($@)]])]])",
156   "    m4_ifdef( [[M4_YY_REENTRANT]],",
157   "    [[",
158   "        m4_define(yy[[get_column]], [[M4_YY_PREFIX[[get_column]]m4_ifelse($#,0,,[[($@)]])]])",
159   "        m4_define(yy[[set_column]], [[M4_YY_PREFIX[[set_column]]m4_ifelse($#,0,,[[($@)]])]])",
160   "    ]])",
161   "    m4_define(yy[[wrap]], [[M4_YY_PREFIX[[wrap]]m4_ifelse($#,0,,[[($@)]])]])",
162   "%endif",
163   "",
164   "m4_ifdef( [[M4_YY_BISON_LVAL]],",
165   "[[",
166   "    m4_define(yy[[get_lval]], [[M4_YY_PREFIX[[get_lval]]m4_ifelse($#,0,,[[($@)]])]])",
167   "    m4_define(yy[[set_lval]], [[M4_YY_PREFIX[[set_lval]]m4_ifelse($#,0,,[[($@)]])]])",
168   "]])",
169   "",
170   "m4_ifdef( [[<M4_YY_BISON_LLOC>]],",
171   "[[",
172   "    m4_define(yy[[get_lloc]], [[M4_YY_PREFIX[[get_lloc]]m4_ifelse($#,0,,[[($@)]])]])",
173   "    m4_define(yy[[set_lloc]], [[M4_YY_PREFIX[[set_lloc]]m4_ifelse($#,0,,[[($@)]])]])",
174   "]])",
175   "",
176   "",
177   "    m4_define(yy[[alloc]], [[M4_YY_PREFIX[[alloc]]m4_ifelse($#,0,,[[($@)]])]])",
178   "    m4_define(yy[[realloc]], [[M4_YY_PREFIX[[realloc]]m4_ifelse($#,0,,[[($@)]])]])",
179   "    m4_define(yy[[free]], [[M4_YY_PREFIX[[free]]m4_ifelse($#,0,,[[($@)]])]])",
180   "",
181   "%if-c-only",
182   "m4_ifdef( [[M4_YY_NOT_REENTRANT]],",
183   "[[",
184   "    m4_define(yy[[text]], [[M4_YY_PREFIX[[text]]m4_ifelse($#,0,,[[($@)]])]])",
185   "    m4_define(yy[[leng]], [[M4_YY_PREFIX[[leng]]m4_ifelse($#,0,,[[($@)]])]])",
186   "    m4_define(yy[[in]], [[M4_YY_PREFIX[[in]]m4_ifelse($#,0,,[[($@)]])]])",
187   "    m4_define(yy[[out]], [[M4_YY_PREFIX[[out]]m4_ifelse($#,0,,[[($@)]])]])",
188   "    m4_define(yy[[_flex_debug]], [[M4_YY_PREFIX[[_flex_debug]]m4_ifelse($#,0,,[[($@)]])]])",
189   "    m4_define(yy[[lineno]], [[M4_YY_PREFIX[[lineno]]m4_ifelse($#,0,,[[($@)]])]])",
190   "]])",
191   "%endif",
192   "",
193   "",
194   "m4_ifdef( [[M4_YY_TABLES_EXTERNAL]],",
195   "[[",
196   "    m4_define(yy[[tables_fload]], [[M4_YY_PREFIX[[tables_fload]]m4_ifelse($#,0,,[[($@)]])]])",
197   "    m4_define(yy[[tables_destroy]], [[M4_YY_PREFIX[[tables_destroy]]m4_ifelse($#,0,,[[($@)]])]])",
198   "    m4_define(yy[[TABLES_NAME]], [[M4_YY_PREFIX[[TABLES_NAME]]m4_ifelse($#,0,,[[($@)]])]])",
199   "]])",
200   "",
201   "/* First, we deal with  platform-specific or compiler-specific issues. */",
202   "",
203   "#if defined(__FreeBSD__)",
204   "#ifndef __STDC_LIMIT_MACROS",
205   "#define	__STDC_LIMIT_MACROS",
206   "#endif",
207   "#include <sys/cdefs.h>",
208   "#include <stdint.h>",
209   "#else",
210   "#define	__dead2",
211   "#endif",
212   "",
213   "/* begin standard C headers. */",
214   "%if-c-only",
215   "#include <stdio.h>",
216   "#include <string.h>",
217   "#include <errno.h>",
218   "#include <stdlib.h>",
219   "%endif",
220   "",
221   "%if-tables-serialization",
222   "#include <sys/types.h>",
223   "#include <netinet/in.h>",
224   "%endif",
225   "/* end standard C headers. */",
226   "",
227   "%if-c-or-c++",
228   "/* flex integer type definitions */",
229   "",
230   "#ifndef FLEXINT_H",
231   "#define FLEXINT_H",
232   "",
233   "/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */",
234   "",
235   "#if defined(__FreeBSD__) || \\",
236   "    (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)",
237   "",
238   "/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,",
239   " * if you want the limit (max/min) macros for int types. ",
240   " */",
241   "#ifndef __STDC_LIMIT_MACROS",
242   "#define __STDC_LIMIT_MACROS 1",
243   "#endif",
244   "",
245   "#include <inttypes.h>",
246   "typedef int8_t flex_int8_t;",
247   "typedef uint8_t flex_uint8_t;",
248   "typedef int16_t flex_int16_t;",
249   "typedef uint16_t flex_uint16_t;",
250   "typedef int32_t flex_int32_t;",
251   "typedef uint32_t flex_uint32_t;",
252   "#else",
253   "typedef signed char flex_int8_t;",
254   "typedef short int flex_int16_t;",
255   "typedef int flex_int32_t;",
256   "typedef unsigned char flex_uint8_t; ",
257   "typedef unsigned short int flex_uint16_t;",
258   "typedef unsigned int flex_uint32_t;",
259   "",
260   "/* Limits of integral types. */",
261   "#ifndef INT8_MIN",
262   "#define INT8_MIN               (-128)",
263   "#endif",
264   "#ifndef INT16_MIN",
265   "#define INT16_MIN              (-32767-1)",
266   "#endif",
267   "#ifndef INT32_MIN",
268   "#define INT32_MIN              (-2147483647-1)",
269   "#endif",
270   "#ifndef INT8_MAX",
271   "#define INT8_MAX               (127)",
272   "#endif",
273   "#ifndef INT16_MAX",
274   "#define INT16_MAX              (32767)",
275   "#endif",
276   "#ifndef INT32_MAX",
277   "#define INT32_MAX              (2147483647)",
278   "#endif",
279   "#ifndef UINT8_MAX",
280   "#define UINT8_MAX              (255U)",
281   "#endif",
282   "#ifndef UINT16_MAX",
283   "#define UINT16_MAX             (65535U)",
284   "#endif",
285   "#ifndef UINT32_MAX",
286   "#define UINT32_MAX             (4294967295U)",
287   "#endif",
288   "",
289   "#endif /* ! C99 */",
290   "",
291   "#endif /* ! FLEXINT_H */",
292   "",
293   "%endif",
294   "",
295   "%if-c++-only",
296   "/* begin standard C++ headers. */",
297   "#include <iostream> ",
298   "#include <errno.h>",
299   "#include <cstdlib>",
300   "#include <cstdio>",
301   "#include <cstring>",
302   "/* end standard C++ headers. */",
303   "%endif",
304   "",
305   "#ifdef __cplusplus",
306   "",
307   "/* The \"const\" storage-class-modifier is valid. */",
308   "#define YY_USE_CONST",
309   "",
310   "#else	/* ! __cplusplus */",
311   "",
312   "/* C99 requires __STDC__ to be defined as 1. */",
313   "#if defined (__STDC__)",
314   "",
315   "#define YY_USE_CONST",
316   "",
317   "#endif	/* defined (__STDC__) */",
318   "#endif	/* ! __cplusplus */",
319   "",
320   "#ifdef YY_USE_CONST",
321   "#define yyconst const",
322   "#else",
323   "#define yyconst",
324   "#endif",
325   "",
326   "%# For compilers that can not handle prototypes.",
327   "%# e.g.,",
328   "%# The function prototype",
329   "%#    int foo(int x, char* y);",
330   "%# ",
331   "%# ...should be written as",
332   "%#    int foo M4_YY_PARAMS(int x, char* y);",
333   "%# ",
334   "%# ...which could possibly generate",
335   "%#    int foo ();",
336   "%# ",
337   "m4_ifdef( [[M4_YY_NO_ANSI_FUNC_PROTOS]],",
338   "[[",
339   "    m4_define( [[M4_YY_PARAMS]], [[()]])",
340   "]],",
341   "[[",
342   "    m4_define( [[M4_YY_PARAMS]], [[($*)]])",
343   "]])",
344   "",
345   "%not-for-header",
346   "/* Returned upon end-of-file. */",
347   "#define YY_NULL 0",
348   "%ok-for-header",
349   "",
350   "%not-for-header",
351   "/* Promotes a possibly negative, possibly signed char to an unsigned",
352   " * integer for use as an array index.  If the signed char is negative,",
353   " * we want to instead treat it as an 8-bit unsigned char, hence the",
354   " * double cast.",
355   " */",
356   "#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)",
357   "%ok-for-header",
358   "",
359   "",
360   "",
361   "%if-reentrant",
362   "",
363   "/* An opaque pointer. */",
364   "#ifndef YY_TYPEDEF_YY_SCANNER_T",
365   "#define YY_TYPEDEF_YY_SCANNER_T",
366   "typedef void* yyscan_t;",
367   "#endif",
368   "",
369   "%# Declare yyguts variable",
370   "m4_define( [[M4_YY_DECL_GUTS_VAR]], [[struct yyguts_t * yyg = (struct yyguts_t*)yyscanner]])",
371   "%# Perform a noop access on yyguts to prevent unused variable complains",
372   "m4_define( [[M4_YY_NOOP_GUTS_VAR]], [[(void)yyg]])",
373   "%# For use wherever a Global is accessed or assigned.",
374   "m4_define( [[YY_G]], [[yyg->$1]])",
375   "",
376   "%# For use in function prototypes to append the additional argument.",
377   "m4_define( [[M4_YY_PROTO_LAST_ARG]],  [[, yyscan_t yyscanner]])",
378   "m4_define( [[M4_YY_PROTO_ONLY_ARG]],  [[yyscan_t yyscanner]])",
379   "",
380   "%# For use in function definitions to append the additional argument.",
381   "m4_ifdef( [[M4_YY_NO_ANSI_FUNC_DEFS]],",
382   "[[",
383   "    m4_define( [[M4_YY_DEF_LAST_ARG]], [[, yyscanner]])",
384   "    m4_define( [[M4_YY_DEF_ONLY_ARG]], [[yyscanner]])",
385   "]],",
386   "[[",
387   "    m4_define( [[M4_YY_DEF_LAST_ARG]],  [[, yyscan_t yyscanner]])",
388   "    m4_define( [[M4_YY_DEF_ONLY_ARG]],  [[yyscan_t yyscanner]])",
389   "]])",
390   "m4_define( [[M4_YY_DECL_LAST_ARG]],  [[yyscan_t yyscanner;]])",
391   "",
392   "%# For use in function calls to pass the additional argument.",
393   "m4_define( [[M4_YY_CALL_LAST_ARG]], [[, yyscanner]])",
394   "m4_define( [[M4_YY_CALL_ONLY_ARG]], [[yyscanner]])",
395   "",
396   "%# For use in function documentation to adjust for additional argument.",
397   "m4_define( [[M4_YY_DOC_PARAM]], [[@param yyscanner The scanner object.]])",
398   "",
399   "/* For convenience, these vars (plus the bison vars far below)",
400   "   are macros in the reentrant scanner. */",
401   "#define yyin YY_G(yyin_r)",
402   "#define yyout YY_G(yyout_r)",
403   "#define yyextra YY_G(yyextra_r)",
404   "#define yyleng YY_G(yyleng_r)",
405   "#define yytext YY_G(yytext_r)",
406   "#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)",
407   "#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)",
408   "#define yy_flex_debug YY_G(yy_flex_debug_r)",
409   "",
410   "m4_define( [[M4_YY_INCR_LINENO]],",
411   "[[   ",
412   "    do{ yylineno++;",
413   "        yycolumn=0;",
414   "    }while(0)",
415   "]])",
416   "",
417   "%endif",
418   "",
419   "",
420   "",
421   "%if-not-reentrant",
422   "",
423   "m4_define( [[M4_YY_INCR_LINENO]],",
424   "[[   ",
425   "    yylineno++;",
426   "]])",
427   "",
428   "%# Define these macros to be no-ops.",
429   "m4_define( [[M4_YY_DECL_GUTS_VAR]], [[m4_dnl]])",
430   "m4_define( [[M4_YY_NOOP_GUTS_VAR]], [[m4_dnl]])",
431   "m4_define( [[YY_G]], [[($1)]])",
432   "m4_define( [[M4_YY_PROTO_LAST_ARG]])",
433   "m4_define( [[M4_YY_PROTO_ONLY_ARG]],  [[void]])",
434   "m4_define( [[M4_YY_DEF_LAST_ARG]])",
435   "",
436   "m4_ifdef( [[M4_YY_NO_ANSI_FUNC_DEFS]],",
437   "[[",
438   "    m4_define( [[M4_YY_DEF_ONLY_ARG]])",
439   "]],",
440   "[[",
441   "    m4_define( [[M4_YY_DEF_ONLY_ARG]],  [[void]])",
442   "]])",
443   "m4_define([[M4_YY_DECL_LAST_ARG]])",
444   "m4_define([[M4_YY_CALL_LAST_ARG]])",
445   "m4_define([[M4_YY_CALL_ONLY_ARG]])",
446   "m4_define( [[M4_YY_DOC_PARAM]], [[]])",
447   "",
448   "%endif",
449   "",
450   "",
451   "m4_ifdef( [[M4_YY_NO_ANSI_FUNC_DEFS]],",
452   "[[",
453   "%# For compilers that need traditional function definitions.",
454   "%# e.g.,",
455   "%# The function prototype taking 2 arguments",
456   "%#    int foo (int x, char* y)",
457   "%#",
458   "%# ...should be written as",
459   "%#    int foo YYFARGS2(int,x, char*,y)",
460   "%#",
461   "%# ...which could possibly generate",
462   "%#    int foo (x,y,yyscanner)",
463   "%#        int x;",
464   "%#        char * y;",
465   "%#        yyscan_t yyscanner;",
466   "%#",
467   "%# Generate traditional function defs",
468   "    m4_define( [[YYFARGS0]], [[(M4_YY_DEF_ONLY_ARG) [[\\]]",
469   "        M4_YY_DECL_LAST_ARG]])",
470   "    m4_define( [[YYFARGS1]], [[($2 M4_YY_DEF_LAST_ARG) [[\\]]",
471   "        $1 $2; [[\\]]",
472   "        M4_YY_DECL_LAST_ARG]])",
473   "    m4_define( [[YYFARGS2]], [[($2,$4 M4_YY_DEF_LAST_ARG) [[\\]]",
474   "        $1 $2; [[\\]]",
475   "        $3 $4; [[\\]]",
476   "        M4_YY_DECL_LAST_ARG]])",
477   "    m4_define( [[YYFARGS3]], [[($2,$4,$6 M4_YY_DEF_LAST_ARG) [[\\]]",
478   "        $1 $2; [[\\]]",
479   "        $3 $4; [[\\]]",
480   "        $5 $6; [[\\]]",
481   "        M4_YY_DECL_LAST_ARG]])",
482   "]],",
483   "[[",
484   "%# Generate C99 function defs.",
485   "    m4_define( [[YYFARGS0]], [[(M4_YY_DEF_ONLY_ARG)]])",
486   "    m4_define( [[YYFARGS1]], [[($1 $2 M4_YY_DEF_LAST_ARG)]])",
487   "    m4_define( [[YYFARGS2]], [[($1 $2, $3 $4 M4_YY_DEF_LAST_ARG)]])",
488   "    m4_define( [[YYFARGS3]], [[($1 $2, $3 $4, $5 $6 M4_YY_DEF_LAST_ARG)]])",
489   "]])",
490   "",
491   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
492   "[[",
493   "/* Enter a start condition.  This macro really ought to take a parameter,",
494   " * but we do it the disgusting crufty way forced on us by the ()-less",
495   " * definition of BEGIN.",
496   " */",
497   "#define BEGIN YY_G(yy_start) = 1 + 2 *",
498   "]])",
499   "",
500   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
501   "[[",
502   "/* Translate the current start state into a value that can be later handed",
503   " * to BEGIN to return to the state.  The YYSTATE alias is for lex",
504   " * compatibility.",
505   " */",
506   "#define YY_START ((YY_G(yy_start) - 1) / 2)",
507   "#define YYSTATE YY_START",
508   "]])",
509   "",
510   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
511   "[[",
512   "/* Action number for EOF rule of a given start state. */",
513   "#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)",
514   "]])",
515   "",
516   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
517   "[[",
518   "/* Special action meaning \"start processing a new file\". */",
519   "#define YY_NEW_FILE yyrestart( yyin M4_YY_CALL_LAST_ARG )",
520   "]])",
521   "",
522   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
523   "[[",
524   "#define YY_END_OF_BUFFER_CHAR 0",
525   "]])",
526   "",
527   "/* Size of default input buffer. */",
528   "#ifndef YY_BUF_SIZE",
529   "#define YY_BUF_SIZE 16384",
530   "#endif",
531   "",
532   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
533   "[[",
534   "/* The state buf must be large enough to hold one state per character in the main buffer.",
535   " */",
536   "#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))",
537   "]])",
538   "",
539   "",
540   "#ifndef YY_TYPEDEF_YY_BUFFER_STATE",
541   "#define YY_TYPEDEF_YY_BUFFER_STATE",
542   "typedef struct yy_buffer_state *YY_BUFFER_STATE;",
543   "#endif",
544   "",
545   "#ifndef YY_TYPEDEF_YY_SIZE_T",
546   "#define YY_TYPEDEF_YY_SIZE_T",
547   "typedef size_t yy_size_t;",
548   "#endif",
549   "",
550   "%if-not-reentrant",
551   "extern yy_size_t yyleng;",
552   "%endif",
553   "",
554   "%if-c-only",
555   "%if-not-reentrant",
556   "extern FILE *yyin, *yyout;",
557   "%endif",
558   "%endif",
559   "",
560   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
561   "[[",
562   "#define EOB_ACT_CONTINUE_SCAN 0",
563   "#define EOB_ACT_END_OF_FILE 1",
564   "#define EOB_ACT_LAST_MATCH 2",
565   "]])",
566   "",
567   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
568   "[[",
569   "    m4_ifdef( [[M4_YY_USE_LINENO]],",
570   "    [[",
571   "    /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires",
572   "     *       access to the local variable yy_act. Since yyless() is a macro, it would break",
573   "     *       existing scanners that call yyless() from OUTSIDE yylex. ",
574   "     *       One obvious solution it to make yy_act a global. I tried that, and saw",
575   "     *       a 5% performance hit in a non-yylineno scanner, because yy_act is",
576   "     *       normally declared as a register variable-- so it is not worth it.",
577   "     */",
578   "    #define  YY_LESS_LINENO(n) \\",
579   "            do { \\",
580   "                int yyl;\\",
581   "                for ( yyl = n; yyl < yyleng; ++yyl )\\",
582   "                    if ( yytext[yyl] == '\\n' )\\",
583   "                        --yylineno;\\",
584   "            }while(0)",
585   "    ]],",
586   "    [[",
587   "    #define YY_LESS_LINENO(n)",
588   "    ]])",
589   "]])",
590   "",
591   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
592   "[[",
593   "/* Return all but the first \"n\" matched characters back to the input stream. */",
594   "#define yyless(n) \\",
595   "	do \\",
596   "		{ \\",
597   "		/* Undo effects of setting up yytext. */ \\",
598   "        int yyless_macro_arg = (n); \\",
599   "        YY_LESS_LINENO(yyless_macro_arg);\\",
600   "		*yy_cp = YY_G(yy_hold_char); \\",
601   "		YY_RESTORE_YY_MORE_OFFSET \\",
602   "		YY_G(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \\",
603   "		YY_DO_BEFORE_ACTION; /* set up yytext again */ \\",
604   "		} \\",
605   "	while ( 0 )",
606   "]])",
607   "",
608   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
609   "[[",
610   "#define unput(c) yyunput( c, YY_G(yytext_ptr) M4_YY_CALL_LAST_ARG )",
611   "]])",
612   "",
613   "#ifndef YY_STRUCT_YY_BUFFER_STATE",
614   "#define YY_STRUCT_YY_BUFFER_STATE",
615   "struct yy_buffer_state",
616   "	{",
617   "%if-c-only",
618   "	FILE *yy_input_file;",
619   "%endif",
620   "",
621   "%if-c++-only",
622   "	std::istream* yy_input_file;",
623   "%endif",
624   "",
625   "",
626   "	char *yy_ch_buf;		/* input buffer */",
627   "	char *yy_buf_pos;		/* current position in input buffer */",
628   "",
629   "	/* Size of input buffer in bytes, not including room for EOB",
630   "	 * characters.",
631   "	 */",
632   "	yy_size_t yy_buf_size;",
633   "",
634   "	/* Number of characters read into yy_ch_buf, not including EOB",
635   "	 * characters.",
636   "	 */",
637   "	yy_size_t yy_n_chars;",
638   "",
639   "	/* Whether we \"own\" the buffer - i.e., we know we created it,",
640   "	 * and can realloc() it to grow it, and should free() it to",
641   "	 * delete it.",
642   "	 */",
643   "	int yy_is_our_buffer;",
644   "",
645   "	/* Whether this is an \"interactive\" input source; if so, and",
646   "	 * if we're using stdio for input, then we want to use getc()",
647   "	 * instead of fread(), to make sure we stop fetching input after",
648   "	 * each newline.",
649   "	 */",
650   "	int yy_is_interactive;",
651   "",
652   "	/* Whether we're considered to be at the beginning of a line.",
653   "	 * If so, '^' rules will be active on the next match, otherwise",
654   "	 * not.",
655   "	 */",
656   "	int yy_at_bol;",
657   "",
658   "    int yy_bs_lineno; /**< The line count. */",
659   "    int yy_bs_column; /**< The column count. */",
660   "    ",
661   "",
662   "	/* Whether to try to fill the input buffer when we reach the",
663   "	 * end of it.",
664   "	 */",
665   "	int yy_fill_buffer;",
666   "",
667   "	int yy_buffer_status;",
668   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
669   "[[",
670   "#define YY_BUFFER_NEW 0",
671   "#define YY_BUFFER_NORMAL 1",
672   "	/* When an EOF's been seen but there's still some text to process",
673   "	 * then we mark the buffer as YY_EOF_PENDING, to indicate that we",
674   "	 * shouldn't try reading from the input source any more.  We might",
675   "	 * still have a bunch of tokens to match, though, because of",
676   "	 * possible backing-up.",
677   "	 *",
678   "	 * When we actually see the EOF, we change the status to \"new\"",
679   "	 * (via yyrestart()), so that the user can continue scanning by",
680   "	 * just pointing yyin at a new input file.",
681   "	 */",
682   "#define YY_BUFFER_EOF_PENDING 2",
683   "]])",
684   "	};",
685   "#endif /* !YY_STRUCT_YY_BUFFER_STATE */",
686   "",
687   "%if-c-only Standard (non-C++) definition",
688   "%not-for-header",
689   "%if-not-reentrant",
690   "",
691   "/* Stack of input buffers. */",
692   "static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */",
693   "static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */",
694   "static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */",
695   "%endif",
696   "%ok-for-header",
697   "%endif",
698   "",
699   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
700   "[[",
701   "/* We provide macros for accessing buffer states in case in the",
702   " * future we want to put the buffer states in a more general",
703   " * \"scanner state\".",
704   " *",
705   " * Returns the top of the stack, or NULL.",
706   " */",
707   "#define YY_CURRENT_BUFFER ( YY_G(yy_buffer_stack) \\",
708   "                          ? YY_G(yy_buffer_stack)[YY_G(yy_buffer_stack_top)] \\",
709   "                          : NULL)",
710   "#define yy_current_buffer YY_CURRENT_BUFFER",
711   "]])",
712   "",
713   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
714   "[[",
715   "/* Same as previous macro, but useful when we know that the buffer stack is not",
716   " * NULL or when we need an lvalue. For internal use only.",
717   " */",
718   "#define YY_CURRENT_BUFFER_LVALUE YY_G(yy_buffer_stack)[YY_G(yy_buffer_stack_top)]",
719   "]])",
720   "",
721   "%if-c-only Standard (non-C++) definition",
722   "",
723   "%if-not-reentrant",
724   "%not-for-header",
725   "/* yy_hold_char holds the character lost when yytext is formed. */",
726   "static char yy_hold_char;",
727   "static yy_size_t yy_n_chars;		/* number of characters read into yy_ch_buf */",
728   "yy_size_t yyleng;",
729   "",
730   "/* Points to current character in buffer. */",
731   "static char *yy_c_buf_p = (char *) 0;",
732   "static int yy_init = 0;		/* whether we need to initialize */",
733   "static int yy_start = 0;	/* start state number */",
734   "",
735   "/* Flag which is used to allow yywrap()'s to do buffer switches",
736   " * instead of setting up a fresh yyin.  A bit of a hack ...",
737   " */",
738   "static int yy_did_buffer_switch_on_eof;",
739   "%ok-for-header",
740   "%endif",
741   "",
742   "void yyrestart M4_YY_PARAMS( FILE *input_file M4_YY_PROTO_LAST_ARG );",
743   "void yy_switch_to_buffer M4_YY_PARAMS( YY_BUFFER_STATE new_buffer M4_YY_PROTO_LAST_ARG );",
744   "YY_BUFFER_STATE yy_create_buffer M4_YY_PARAMS( FILE *file, int size M4_YY_PROTO_LAST_ARG );",
745   "void yy_delete_buffer M4_YY_PARAMS( YY_BUFFER_STATE b M4_YY_PROTO_LAST_ARG );",
746   "void yy_flush_buffer M4_YY_PARAMS( YY_BUFFER_STATE b M4_YY_PROTO_LAST_ARG );",
747   "void yypush_buffer_state M4_YY_PARAMS( YY_BUFFER_STATE new_buffer M4_YY_PROTO_LAST_ARG );",
748   "void yypop_buffer_state M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
749   "",
750   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
751   "[[",
752   "static void yyensure_buffer_stack M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
753   "static void yy_load_buffer_state M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
754   "static void yy_init_buffer M4_YY_PARAMS( YY_BUFFER_STATE b, FILE *file M4_YY_PROTO_LAST_ARG );",
755   "]])",
756   "",
757   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
758   "[[",
759   "#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER M4_YY_CALL_LAST_ARG)",
760   "]])",
761   "",
762   "YY_BUFFER_STATE yy_scan_buffer M4_YY_PARAMS( char *base, yy_size_t size M4_YY_PROTO_LAST_ARG );",
763   "YY_BUFFER_STATE yy_scan_string M4_YY_PARAMS( yyconst char *yy_str M4_YY_PROTO_LAST_ARG );",
764   "YY_BUFFER_STATE yy_scan_bytes M4_YY_PARAMS( yyconst char *bytes, yy_size_t len M4_YY_PROTO_LAST_ARG );",
765   "",
766   "%endif",
767   "",
768   "void *yyalloc M4_YY_PARAMS( yy_size_t M4_YY_PROTO_LAST_ARG );",
769   "void *yyrealloc M4_YY_PARAMS( void *, yy_size_t M4_YY_PROTO_LAST_ARG );",
770   "void yyfree M4_YY_PARAMS( void * M4_YY_PROTO_LAST_ARG );",
771   "",
772   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
773   "[[",
774   "#define yy_new_buffer yy_create_buffer",
775   "]])",
776   "",
777   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
778   "[[",
779   "#define yy_set_interactive(is_interactive) \\",
780   "	{ \\",
781   "	if ( ! YY_CURRENT_BUFFER ){ \\",
782   "        yyensure_buffer_stack (M4_YY_CALL_ONLY_ARG); \\",
783   "		YY_CURRENT_BUFFER_LVALUE =    \\",
784   "            yy_create_buffer( yyin, YY_BUF_SIZE M4_YY_CALL_LAST_ARG); \\",
785   "	} \\",
786   "	YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \\",
787   "	}",
788   "]])",
789   "",
790   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
791   "[[",
792   "#define yy_set_bol(at_bol) \\",
793   "	{ \\",
794   "	if ( ! YY_CURRENT_BUFFER ){\\",
795   "        yyensure_buffer_stack (M4_YY_CALL_ONLY_ARG); \\",
796   "		YY_CURRENT_BUFFER_LVALUE =    \\",
797   "            yy_create_buffer( yyin, YY_BUF_SIZE M4_YY_CALL_LAST_ARG); \\",
798   "	} \\",
799   "	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \\",
800   "	}",
801   "]])",
802   "",
803   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
804   "[[",
805   "#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)",
806   "]])",
807   "",
808   "%% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here",
809   "",
810   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
811   "[[",
812   "%% [1.5] DFA",
813   "]])",
814   "",
815   "%if-c-only Standard (non-C++) definition",
816   "",
817   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
818   "[[",
819   "static yy_state_type yy_get_previous_state M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
820   "static yy_state_type yy_try_NUL_trans M4_YY_PARAMS( yy_state_type current_state  M4_YY_PROTO_LAST_ARG);",
821   "static int yy_get_next_buffer M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
822   "static void yy_fatal_error M4_YY_PARAMS( yyconst char msg[] M4_YY_PROTO_LAST_ARG ) __dead2;",
823   "]])",
824   "",
825   "%endif",
826   "",
827   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
828   "[[",
829   "/* Done after the current pattern has been matched and before the",
830   " * corresponding action - sets up yytext.",
831   " */",
832   "#define YY_DO_BEFORE_ACTION \\",
833   "	YY_G(yytext_ptr) = yy_bp; \\",
834   "%% [2.0] code to fiddle yytext and yyleng for yymore() goes here \\",
835   "	YY_G(yy_hold_char) = *yy_cp; \\",
836   "	*yy_cp = '\\0'; \\",
837   "%% [3.0] code to copy yytext_ptr to yytext[] goes here, if %array \\",
838   "	YY_G(yy_c_buf_p) = yy_cp;",
839   "]])",
840   "",
841   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
842   "[[",
843   "%% [4.0] data tables for the DFA and the user's section 1 definitions go here",
844   "]])",
845   "",
846   "m4_ifdef( [[M4_YY_IN_HEADER]], [[#ifdef YY_HEADER_EXPORT_START_CONDITIONS]])",
847   "M4_YY_SC_DEFS",
848   "m4_ifdef( [[M4_YY_IN_HEADER]], [[#endif]])",
849   "",
850   "m4_ifdef( [[M4_YY_NO_UNISTD_H]],,",
851   "[[",
852   "#ifndef YY_NO_UNISTD_H",
853   "/* Special case for \"unistd.h\", since it is non-ANSI. We include it way",
854   " * down here because we want the user's section 1 to have been scanned first.",
855   " * The user has a chance to override it with an option.",
856   " */",
857   "%if-c-only",
858   "#include <unistd.h>",
859   "%endif",
860   "%if-c++-only",
861   "#include <unistd.h>",
862   "%endif",
863   "#endif",
864   "]])",
865   "",
866   "m4_ifdef( [[M4_EXTRA_TYPE_DEFS]],",
867   "[[",
868   "#define YY_EXTRA_TYPE M4_EXTRA_TYPE_DEFS",
869   "]],",
870   "[[",
871   "#ifndef YY_EXTRA_TYPE",
872   "#define YY_EXTRA_TYPE void *",
873   "#endif",
874   "]]",
875   ")",
876   "",
877   "%if-c-only Reentrant structure and macros (non-C++).",
878   "%if-reentrant",
879   "",
880   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
881   "[[",
882   "/* Holds the entire state of the reentrant scanner. */",
883   "struct yyguts_t",
884   "    {",
885   "",
886   "    /* User-defined. Not touched by flex. */",
887   "    YY_EXTRA_TYPE yyextra_r;",
888   "",
889   "    /* The rest are the same as the globals declared in the non-reentrant scanner. */",
890   "    FILE *yyin_r, *yyout_r;",
891   "    size_t yy_buffer_stack_top; /**< index of top of stack. */",
892   "    size_t yy_buffer_stack_max; /**< capacity of stack. */",
893   "    YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */",
894   "    char yy_hold_char;",
895   "    yy_size_t yy_n_chars;",
896   "    yy_size_t yyleng_r;",
897   "    char *yy_c_buf_p;",
898   "    int yy_init;",
899   "    int yy_start;",
900   "    int yy_did_buffer_switch_on_eof;",
901   "    int yy_start_stack_ptr;",
902   "    int yy_start_stack_depth;",
903   "    int *yy_start_stack;",
904   "    yy_state_type yy_last_accepting_state;",
905   "    char* yy_last_accepting_cpos;",
906   "",
907   "    int yylineno_r;",
908   "    int yy_flex_debug_r;",
909   "",
910   "m4_ifdef( [[M4_YY_USES_REJECT]],",
911   "[[",
912   "    yy_state_type *yy_state_buf;",
913   "    yy_state_type *yy_state_ptr;",
914   "    char *yy_full_match;",
915   "    int yy_lp;",
916   "",
917   "    /* These are only needed for trailing context rules,",
918   "     * but there's no conditional variable for that yet. */",
919   "    int yy_looking_for_trail_begin;",
920   "    int yy_full_lp;",
921   "    int *yy_full_state;",
922   "]])",
923   "",
924   "m4_ifdef( [[M4_YY_TEXT_IS_ARRAY]],",
925   "[[",
926   "    char yytext_r[YYLMAX];",
927   "    char *yytext_ptr;",
928   "    int yy_more_offset;",
929   "    int yy_prev_more_offset;",
930   "]],",
931   "[[",
932   "    char *yytext_r;",
933   "    int yy_more_flag;",
934   "    int yy_more_len;",
935   "]])",
936   "",
937   "m4_ifdef( [[M4_YY_BISON_LVAL]],",
938   "[[",
939   "    YYSTYPE * yylval_r;",
940   "]])",
941   "",
942   "m4_ifdef( [[<M4_YY_BISON_LLOC>]],",
943   "[[",
944   "    YYLTYPE * yylloc_r;",
945   "]])",
946   "",
947   "    }; /* end struct yyguts_t */",
948   "]])",
949   "",
950   "",
951   "%if-c-only",
952   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
953   "[[",
954   "static int yy_init_globals M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
955   "]])",
956   "%endif",
957   "",
958   "%if-reentrant",
959   "",
960   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
961   "[[",
962   "    m4_ifdef( [[M4_YY_BISON_LVAL]],",
963   "    [[",
964   "    /* This must go here because YYSTYPE and YYLTYPE are included",
965   "     * from bison output in section 1.*/",
966   "    #    define yylval YY_G(yylval_r)",
967   "    ]])",
968   "",
969   "    m4_ifdef( [[<M4_YY_BISON_LLOC>]],",
970   "    [[",
971   "    #    define yylloc YY_G(yylloc_r)",
972   "    ]])",
973   "]])",
974   "",
975   "int yylex_init M4_YY_PARAMS(yyscan_t* scanner);",
976   "",
977   "int yylex_init_extra M4_YY_PARAMS( YY_EXTRA_TYPE user_defined, yyscan_t* scanner);",
978   "",
979   "%endif",
980   "",
981   "%endif End reentrant structures and macros.",
982   "",
983   "/* Accessor methods to globals.",
984   "   These are made visible to non-reentrant scanners for convenience. */",
985   "",
986   "m4_ifdef( [[M4_YY_NO_DESTROY]],,",
987   "[[",
988   "int yylex_destroy M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
989   "]])",
990   "",
991   "m4_ifdef( [[M4_YY_NO_GET_DEBUG]],,",
992   "[[",
993   "int yyget_debug M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
994   "]])",
995   "",
996   "m4_ifdef( [[M4_YY_NO_SET_DEBUG]],,",
997   "[[",
998   "void yyset_debug M4_YY_PARAMS( int debug_flag M4_YY_PROTO_LAST_ARG );",
999   "]])",
1000   "",
1001   "m4_ifdef( [[M4_YY_NO_GET_EXTRA]],,",
1002   "[[",
1003   "YY_EXTRA_TYPE yyget_extra M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
1004   "]])",
1005   "",
1006   "m4_ifdef( [[M4_YY_NO_SET_EXTRA]],,",
1007   "[[",
1008   "void yyset_extra M4_YY_PARAMS( YY_EXTRA_TYPE user_defined M4_YY_PROTO_LAST_ARG );",
1009   "]])",
1010   "",
1011   "m4_ifdef( [[M4_YY_NO_GET_IN]],,",
1012   "[[",
1013   "FILE *yyget_in M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
1014   "]])",
1015   "",
1016   "m4_ifdef( [[M4_YY_NO_SET_IN]],,",
1017   "[[",
1018   "void yyset_in  M4_YY_PARAMS( FILE * in_str M4_YY_PROTO_LAST_ARG );",
1019   "]])",
1020   "",
1021   "m4_ifdef( [[M4_YY_NO_GET_OUT]],,",
1022   "[[",
1023   "FILE *yyget_out M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
1024   "]])",
1025   "",
1026   "m4_ifdef( [[M4_YY_NO_SET_OUT]],,",
1027   "[[",
1028   "void yyset_out  M4_YY_PARAMS( FILE * out_str M4_YY_PROTO_LAST_ARG );",
1029   "]])",
1030   "",
1031   "m4_ifdef( [[M4_YY_NO_GET_LENG]],,",
1032   "[[",
1033   "yy_size_t yyget_leng M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
1034   "]])",
1035   "",
1036   "m4_ifdef( [[M4_YY_NO_GET_TEXT]],,",
1037   "[[",
1038   "char *yyget_text M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
1039   "]])",
1040   "",
1041   "m4_ifdef( [[M4_YY_NO_GET_LINENO]],,",
1042   "[[",
1043   "int yyget_lineno M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
1044   "]])",
1045   "",
1046   "m4_ifdef( [[M4_YY_NO_SET_LINENO]],,",
1047   "[[",
1048   "void yyset_lineno M4_YY_PARAMS( int line_number M4_YY_PROTO_LAST_ARG );",
1049   "]])",
1050   "",
1051   "m4_ifdef( [[M4_YY_REENTRANT]],",
1052   "[[",
1053   "m4_ifdef( [[M4_YY_NO_GET_COLUMN]],,",
1054   "[[",
1055   "int yyget_column  M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
1056   "]])",
1057   "]])",
1058   "",
1059   "m4_ifdef( [[M4_YY_REENTRANT]],",
1060   "[[",
1061   "m4_ifdef( [[M4_YY_NO_SET_COLUMN]],,",
1062   "[[",
1063   "void yyset_column M4_YY_PARAMS( int column_no M4_YY_PROTO_LAST_ARG );",
1064   "]])",
1065   "]])",
1066   "",
1067   "%if-bison-bridge",
1068   "m4_ifdef( [[M4_YY_NO_GET_LVAL]],,",
1069   "[[",
1070   "YYSTYPE * yyget_lval M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
1071   "]])",
1072   "",
1073   "void yyset_lval M4_YY_PARAMS( YYSTYPE * yylval_param M4_YY_PROTO_LAST_ARG );",
1074   "",
1075   "m4_ifdef( [[<M4_YY_BISON_LLOC>]],",
1076   "[[",
1077   "    m4_ifdef( [[M4_YY_NO_GET_LLOC]],,",
1078   "    [[",
1079   "       YYLTYPE *yyget_lloc M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
1080   "    ]])",
1081   "",
1082   "    m4_ifdef( [[M4_YY_NO_SET_LLOC]],,",
1083   "    [[",
1084   "        void yyset_lloc M4_YY_PARAMS( YYLTYPE * yylloc_param M4_YY_PROTO_LAST_ARG );",
1085   "    ]])",
1086   "]])",
1087   "%endif",
1088   "",
1089   "/* Macros after this point can all be overridden by user definitions in",
1090   " * section 1.",
1091   " */",
1092   "",
1093   "#ifndef YY_SKIP_YYWRAP",
1094   "#ifdef __cplusplus",
1095   "extern \"C\" int yywrap M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
1096   "#else",
1097   "extern int yywrap M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
1098   "#endif",
1099   "#endif",
1100   "",
1101   "%not-for-header",
1102   "    m4_ifdef( [[M4_YY_NO_UNPUT]],,",
1103   "    [[",
1104   "#ifndef YY_NO_UNPUT",
1105   "    static void yyunput M4_YY_PARAMS( int c, char *buf_ptr  M4_YY_PROTO_LAST_ARG);",
1106   "#endif",
1107   "    ]])",
1108   "%ok-for-header",
1109   "%endif",
1110   "",
1111   "#ifndef yytext_ptr",
1112   "static void yy_flex_strncpy M4_YY_PARAMS( char *, yyconst char *, int M4_YY_PROTO_LAST_ARG);",
1113   "#endif",
1114   "",
1115   "#ifdef YY_NEED_STRLEN",
1116   "static int yy_flex_strlen M4_YY_PARAMS( yyconst char * M4_YY_PROTO_LAST_ARG);",
1117   "#endif",
1118   "",
1119   "#ifndef YY_NO_INPUT",
1120   "%if-c-only Standard (non-C++) definition",
1121   "%not-for-header",
1122   "#ifdef __cplusplus",
1123   "static int yyinput M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
1124   "#else",
1125   "static int input M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
1126   "#endif",
1127   "%ok-for-header",
1128   "%endif",
1129   "#endif",
1130   "",
1131   "",
1132   "%if-c-only",
1133   "%# TODO: This is messy.",
1134   "m4_ifdef( [[M4_YY_STACK_USED]],",
1135   "[[",
1136   "",
1137   "m4_ifdef( [[M4_YY_NOT_REENTRANT]],",
1138   "[[",
1139   "    m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1140   "    [[",
1141   "        static int yy_start_stack_ptr = 0;",
1142   "        static int yy_start_stack_depth = 0;",
1143   "        static int *yy_start_stack = NULL;",
1144   "    ]])",
1145   "]])",
1146   "",
1147   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1148   "[[",
1149   "    m4_ifdef( [[M4_YY_NO_PUSH_STATE]],,",
1150   "    [[",
1151   "    static void yy_push_state M4_YY_PARAMS( int new_state M4_YY_PROTO_LAST_ARG);",
1152   "    ]])",
1153   "    m4_ifdef( [[M4_YY_NO_POP_STATE]],,",
1154   "    [[",
1155   "    static void yy_pop_state M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
1156   "    ]])",
1157   "    m4_ifdef( [[M4_YY_NO_TOP_STATE]],,",
1158   "    [[",
1159   "    static int yy_top_state M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );",
1160   "    ]])",
1161   "]])",
1162   "",
1163   "]],",
1164   "[[",
1165   "m4_define( [[M4_YY_NO_PUSH_STATE]])",
1166   "m4_define( [[M4_YY_NO_POP_STATE]])",
1167   "m4_define( [[M4_YY_NO_TOP_STATE]])",
1168   "]])",
1169   "%endif",
1170   "",
1171   "/* Amount of stuff to slurp up with each read. */",
1172   "#ifndef YY_READ_BUF_SIZE",
1173   "#define YY_READ_BUF_SIZE 8192",
1174   "#endif",
1175   "",
1176   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1177   "[[",
1178   "/* Copy whatever the last rule matched to the standard output. */",
1179   "#ifndef ECHO",
1180   "%if-c-only Standard (non-C++) definition",
1181   "/* This used to be an fputs(), but since the string might contain NUL's,",
1182   " * we now use fwrite().",
1183   " */",
1184   "#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)",
1185   "%endif",
1186   "%if-c++-only C++ definition",
1187   "#define ECHO LexerOutput( yytext, yyleng )",
1188   "%endif",
1189   "#endif",
1190   "]])",
1191   "",
1192   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1193   "[[",
1194   "/* Gets input and stuffs it into \"buf\".  number of characters read, or YY_NULL,",
1195   " * is returned in \"result\".",
1196   " */",
1197   "#ifndef YY_INPUT",
1198   "#define YY_INPUT(buf,result,max_size) \\",
1199   "%% [5.0] fread()/read() definition of YY_INPUT goes here unless we're doing C++ \\",
1200   "\\",
1201   "%if-c++-only C++ definition \\",
1202   "	if ( (result = LexerInput( (char *) buf, max_size )) < 0 ) \\",
1203   "		YY_FATAL_ERROR( \"input in flex scanner failed\" );",
1204   "%endif",
1205   "",
1206   "#endif",
1207   "]])",
1208   "",
1209   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1210   "[[",
1211   "/* No semi-colon after return; correct usage is to write \"yyterminate();\" -",
1212   " * we don't want an extra ';' after the \"return\" because that will cause",
1213   " * some compilers to complain about unreachable statements.",
1214   " */",
1215   "#ifndef yyterminate",
1216   "#define yyterminate() return YY_NULL",
1217   "#endif",
1218   "]])",
1219   "",
1220   "/* Number of entries by which start-condition stack grows. */",
1221   "#ifndef YY_START_STACK_INCR",
1222   "#define YY_START_STACK_INCR 25",
1223   "#endif",
1224   "",
1225   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1226   "[[",
1227   "/* Report a fatal error. */",
1228   "#ifndef YY_FATAL_ERROR",
1229   "%if-c-only",
1230   "#define YY_FATAL_ERROR(msg) yy_fatal_error( msg M4_YY_CALL_LAST_ARG)",
1231   "%endif",
1232   "%if-c++-only",
1233   "#define YY_FATAL_ERROR(msg) LexerError( msg )",
1234   "%endif",
1235   "#endif",
1236   "]])",
1237   "",
1238   "%if-tables-serialization structures and prototypes",
1239   "#ifdef FLEX_SCANNER",
1240   "/*",
1241   "dnl  tables_shared.h - tables serialization header",
1242   "dnl",
1243   "dnl  Copyright (c) 1990 The Regents of the University of California.",
1244   "dnl  All rights reserved.",
1245   "dnl",
1246   "dnl  This code is derived from software contributed to Berkeley by",
1247   "dnl  Vern Paxson.",
1248   "dnl",
1249   "dnl  The United States Government has rights in this work pursuant",
1250   "dnl  to contract no. DE-AC03-76SF00098 between the United States",
1251   "dnl  Department of Energy and the University of California.",
1252   "dnl",
1253   "dnl  This file is part of flex.",
1254   "dnl",
1255   "dnl  Redistribution and use in source and binary forms, with or without",
1256   "dnl  modification, are permitted provided that the following conditions",
1257   "dnl  are met:",
1258   "dnl",
1259   "dnl  1. Redistributions of source code must retain the above copyright",
1260   "dnl     notice, this list of conditions and the following disclaimer.",
1261   "dnl  2. Redistributions in binary form must reproduce the above copyright",
1262   "dnl     notice, this list of conditions and the following disclaimer in the",
1263   "dnl     documentation and/or other materials provided with the distribution.",
1264   "dnl",
1265   "dnl  Neither the name of the University nor the names of its contributors",
1266   "dnl  may be used to endorse or promote products derived from this software",
1267   "dnl  without specific prior written permission.",
1268   "dnl",
1269   "dnl  THIS SOFTWARE IS PROVIDED `AS IS' AND WITHOUT ANY EXPRESS OR",
1270   "dnl  IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED",
1271   "dnl  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR",
1272   "dnl  PURPOSE.",
1273   "",
1274   "dnl",
1275   "dnl  This file is meant to be included in both the skeleton and the actual",
1276   "dnl  flex code (hence the name \"_shared\").",
1277   "*/",
1278   "#ifndef yyskel_static",
1279   "#define yyskel_static static",
1280   "#endif",
1281   "#else",
1282   "#ifndef yyskel_static",
1283   "#define yyskel_static",
1284   "#endif",
1285   "#endif",
1286   "",
1287   "/* Structures and prototypes for serializing flex tables.  The",
1288   " * binary format is documented in the manual.",
1289   " *",
1290   " * Design considerations:",
1291   " *",
1292   " *  -  The format allows many tables per file.",
1293   " *  -  The tables can be streamed.",
1294   " *  -  All data is stored in network byte order.",
1295   " *  -  We do not hinder future unicode support.",
1296   " *  -  We can lookup tables by name.",
1297   " */",
1298   "",
1299   "/** Magic number for serialized format. */",
1300   "#ifndef YYTBL_MAGIC",
1301   "#define YYTBL_MAGIC 0xF13C57B1",
1302   "#endif",
1303   "",
1304   "/** Calculate (0-7) = number bytes needed to pad n to next 64-bit boundary. */",
1305   "#ifndef yypad64",
1306   "#define yypad64(n) ((8-((n)%8))%8)",
1307   "#endif",
1308   "",
1309   "",
1310   "#ifndef YYTABLES_TYPES",
1311   "#define YYTABLES_TYPES",
1312   "/** Possible values for td_id field. Each one corresponds to a",
1313   " *  scanner table of the same name.",
1314   " */",
1315   "enum yytbl_id {",
1316   "	YYTD_ID_ACCEPT = 0x01,		/**< 1-dim ints */",
1317   "	YYTD_ID_BASE = 0x02,		/**< 1-dim ints */",
1318   "	YYTD_ID_CHK = 0x03,		/**< 1-dim ints */",
1319   "	YYTD_ID_DEF = 0x04,		/**< 1-dim ints */",
1320   "	YYTD_ID_EC = 0x05,		/**< 1-dim ints */",
1321   "	YYTD_ID_META = 0x06,		/**< 1-dim ints */",
1322   "	YYTD_ID_NUL_TRANS = 0x07,	/**< 1-dim ints, maybe indices */",
1323   "	YYTD_ID_NXT = 0x08,		/**< may be 2 dimensional ints */",
1324   "	YYTD_ID_RULE_CAN_MATCH_EOL = 0x09, /**< 1-dim ints */",
1325   "	YYTD_ID_START_STATE_LIST = 0x0A,	/**< 1-dim indices into trans tbl  */",
1326   "	YYTD_ID_TRANSITION = 0x0B,	/**< structs */",
1327   "	YYTD_ID_ACCLIST = 0x0C		/**< 1-dim ints */",
1328   "};",
1329   "",
1330   "/** bit flags for t_flags field of struct yytbl_data */",
1331   "enum yytbl_flags {",
1332   "	/* These first three are mutually exclusive */",
1333   "	YYTD_DATA8 = 0x01,   /**< data is an array of type flex_int8_t */",
1334   "	YYTD_DATA16 = 0x02,  /**< data is an array of type flex_int16_t */",
1335   "	YYTD_DATA32 = 0x04,  /**< data is an array of type flex_int32_t */",
1336   "",
1337   "	/* These two are mutually exclusive. */",
1338   "	YYTD_PTRANS = 0x08,  /**< data is a list of indexes of entries",
1339   "                                 into the expanded yy_transition",
1340   "                                 array. See notes in manual. */",
1341   "	YYTD_STRUCT = 0x10  /**< data consists of yy_trans_info structs */",
1342   "};",
1343   "",
1344   "/* The serialized tables header. */",
1345   "struct yytbl_hdr {",
1346   "	flex_uint32_t th_magic;  /**< Must be 0xF13C57B1 (comes from \"Flex Table\") */",
1347   "	flex_uint32_t th_hsize;  /**< Size of this header in bytes. */",
1348   "	flex_uint32_t th_ssize;  /**< Size of this dataset, in bytes, including header. */",
1349   "	flex_uint16_t th_flags;  /**< Currently unused, must be 0 */",
1350   "	char   *th_version; /**< Flex version string. NUL terminated. */",
1351   "	char   *th_name;    /**< The name of this table set. NUL terminated. */",
1352   "};",
1353   "",
1354   "/** A single serialized table */",
1355   "struct yytbl_data {",
1356   "	flex_uint16_t td_id;      /**< enum yytbl_id table identifier */",
1357   "	flex_uint16_t td_flags;   /**< how to interpret this data */",
1358   "	flex_uint32_t td_hilen;   /**< num elements in highest dimension array */",
1359   "	flex_uint32_t td_lolen;   /**< num elements in lowest dimension array */",
1360   "	void   *td_data;     /**< table data */",
1361   "};",
1362   "#endif",
1363   "",
1364   "/** Extract corresponding data size_t from td_flags */",
1365   "#ifndef YYTDFLAGS2BYTES",
1366   "#define YYTDFLAGS2BYTES(td_flags)\\",
1367   "        (((td_flags) & YYTD_DATA8)\\",
1368   "            ? sizeof(flex_int8_t)\\",
1369   "            :(((td_flags) & YYTD_DATA16)\\",
1370   "                ? sizeof(flex_int16_t)\\",
1371   "                :sizeof(flex_int32_t)))",
1372   "#endif",
1373   "",
1374   "#ifdef FLEX_SCANNER",
1375   "%not-for-header",
1376   "#endif",
1377   "yyskel_static flex_int32_t yytbl_calc_total_len (const struct yytbl_data *tbl);",
1378   "#ifdef FLEX_SCANNER",
1379   "%ok-for-header",
1380   "#endif",
1381   "",
1382   "/* vim:set noexpandtab cindent tabstop=8 softtabstop=0 shiftwidth=8 textwidth=0: */",
1383   "",
1384   "",
1385   "/* Load the DFA tables from the given stream.  */",
1386   "int yytables_fload M4_YY_PARAMS(FILE * fp M4_YY_PROTO_LAST_ARG);",
1387   "",
1388   "/* Unload the tables from memory. */",
1389   "int yytables_destroy M4_YY_PARAMS(M4_YY_PROTO_ONLY_ARG);",
1390   "%not-for-header",
1391   "",
1392   "/** Describes a mapping from a serialized table id to its deserialized state in",
1393   " * this scanner.  This is the bridge between our \"generic\" deserialization code",
1394   " * and the specifics of this scanner. ",
1395   " */",
1396   "struct yytbl_dmap {",
1397   "	enum yytbl_id dm_id;/**< table identifier */",
1398   "	void  **dm_arr;		/**< address of pointer to store the deserialized table. */",
1399   "	size_t  dm_sz;		/**< local sizeof() each element in table. */",
1400   "};",
1401   "",
1402   "/** A {0,0,0}-terminated list of structs, forming the map */",
1403   "static struct yytbl_dmap yydmap[] =",
1404   "{",
1405   "%tables-yydmap generated elements",
1406   "    {0,0,0}",
1407   "};",
1408   "",
1409   "/** A tables-reader object to maintain some state in the read. */",
1410   "struct yytbl_reader {",
1411   "    FILE * fp; /**< input stream */",
1412   "    flex_uint32_t bread; /**< bytes read since beginning of current tableset */",
1413   "};",
1414   "",
1415   "%endif",
1416   "/* end tables serialization structures and prototypes */",
1417   "",
1418   "%ok-for-header",
1419   "",
1420   "/* Default declaration of generated scanner - a define so the user can",
1421   " * easily add parameters.",
1422   " */",
1423   "#ifndef YY_DECL",
1424   "#define YY_DECL_IS_OURS 1",
1425   "%if-c-only Standard (non-C++) definition",
1426   "",
1427   "",
1428   "m4_define( [[M4_YY_LEX_PROTO]], [[M4_YY_PARAMS(M4_YY_PROTO_ONLY_ARG)]])",
1429   "m4_define( [[M4_YY_LEX_DECLARATION]], [[YYFARGS0(void)]])",
1430   "",
1431   "m4_ifdef( [[M4_YY_BISON_LVAL]],",
1432   "[[",
1433   "    m4_dnl  The bison pure parser is used. Redefine yylex to",
1434   "    m4_dnl  accept the lval parameter.",
1435   "",
1436   "    m4_define( [[M4_YY_LEX_PROTO]], [[\\]]",
1437   "               [[M4_YY_PARAMS(YYSTYPE * yylval_param M4_YY_PROTO_LAST_ARG)]])",
1438   "    m4_define( [[M4_YY_LEX_DECLARATION]], [[\\]]",
1439   "               [[YYFARGS1(YYSTYPE *,yylval_param)]])",
1440   "]])",
1441   "",
1442   "m4_ifdef( [[<M4_YY_BISON_LLOC>]],",
1443   "[[",
1444   "    m4_dnl  Locations are used. yylex should also accept the ylloc parameter.",
1445   "",
1446   "    m4_define( [[M4_YY_LEX_PROTO]], [[\\]]",
1447   "               [[M4_YY_PARAMS(YYSTYPE * yylval_param, YYLTYPE * yylloc_param M4_YY_PROTO_LAST_ARG)]])",
1448   "    m4_define( [[M4_YY_LEX_DECLARATION]], [[\\]]",
1449   "               [[YYFARGS2(YYSTYPE *,yylval_param, YYLTYPE *,yylloc_param)]])",
1450   "]])",
1451   "",
1452   "extern int yylex M4_YY_LEX_PROTO;",
1453   "",
1454   "#define YY_DECL int yylex M4_YY_LEX_DECLARATION",
1455   "%endif",
1456   "%if-c++-only C++ definition",
1457   "#define YY_DECL int yyFlexLexer::yylex()",
1458   "%endif",
1459   "#endif /* !YY_DECL */",
1460   "",
1461   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1462   "[[",
1463   "/* Code executed at the beginning of each rule, after yytext and yyleng",
1464   " * have been set up.",
1465   " */",
1466   "#ifndef YY_USER_ACTION",
1467   "#define YY_USER_ACTION",
1468   "#endif",
1469   "]])",
1470   "",
1471   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1472   "[[",
1473   "/* Code executed at the end of each rule. */",
1474   "#ifndef YY_BREAK",
1475   "#define YY_BREAK break;",
1476   "#endif",
1477   "]])",
1478   "",
1479   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1480   "[[",
1481   "%% [6.0] YY_RULE_SETUP definition goes here",
1482   "]])",
1483   "",
1484   "%not-for-header",
1485   "/** The main scanner function which does all the work.",
1486   " */",
1487   "YY_DECL",
1488   "{",
1489   "	yy_state_type yy_current_state;",
1490   "	char *yy_cp, *yy_bp;",
1491   "	int yy_act;",
1492   "    M4_YY_DECL_GUTS_VAR();",
1493   "",
1494   "m4_ifdef( [[M4_YY_NOT_REENTRANT]],",
1495   "[[",
1496   "    m4_ifdef( [[M4_YY_BISON_LVAL]],",
1497   "    [[",
1498   "        YYSTYPE * yylval;",
1499   "    ]])",
1500   "    m4_ifdef( [[<M4_YY_BISON_LLOC>]],",
1501   "    [[",
1502   "        YYLTYPE * yylloc;",
1503   "    ]])",
1504   "]])",
1505   "",
1506   "%% [7.0] user's declarations go here",
1507   "",
1508   "m4_ifdef( [[M4_YY_BISON_LVAL]],",
1509   "[[",
1510   "    yylval = yylval_param;",
1511   "]])",
1512   "",
1513   "m4_ifdef( [[<M4_YY_BISON_LLOC>]],",
1514   "[[",
1515   "    yylloc = yylloc_param;",
1516   "]])",
1517   "",
1518   "	if ( !YY_G(yy_init) )",
1519   "		{",
1520   "		YY_G(yy_init) = 1;",
1521   "",
1522   "#ifdef YY_USER_INIT",
1523   "		YY_USER_INIT;",
1524   "#endif",
1525   "",
1526   "m4_ifdef( [[M4_YY_USES_REJECT]],",
1527   "[[",
1528   "        /* Create the reject buffer large enough to save one state per allowed character. */",
1529   "        if ( ! YY_G(yy_state_buf) )",
1530   "            YY_G(yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE  M4_YY_CALL_LAST_ARG);",
1531   "            if ( ! YY_G(yy_state_buf) )",
1532   "                YY_FATAL_ERROR( \"out of dynamic memory in yylex()\" );",
1533   "]])",
1534   "",
1535   "		if ( ! YY_G(yy_start) )",
1536   "			YY_G(yy_start) = 1;	/* first start state */",
1537   "",
1538   "		if ( ! yyin )",
1539   "%if-c-only",
1540   "			yyin = stdin;",
1541   "%endif",
1542   "%if-c++-only",
1543   "			yyin = & std::cin;",
1544   "%endif",
1545   "",
1546   "		if ( ! yyout )",
1547   "%if-c-only",
1548   "			yyout = stdout;",
1549   "%endif",
1550   "%if-c++-only",
1551   "			yyout = & std::cout;",
1552   "%endif",
1553   "",
1554   "		if ( ! YY_CURRENT_BUFFER ) {",
1555   "			yyensure_buffer_stack (M4_YY_CALL_ONLY_ARG);",
1556   "			YY_CURRENT_BUFFER_LVALUE =",
1557   "				yy_create_buffer( yyin, YY_BUF_SIZE M4_YY_CALL_LAST_ARG);",
1558   "		}",
1559   "",
1560   "		yy_load_buffer_state( M4_YY_CALL_ONLY_ARG );",
1561   "		}",
1562   "",
1563   "	while ( 1 )		/* loops until end-of-file is reached */",
1564   "		{",
1565   "%% [8.0] yymore()-related code goes here",
1566   "		yy_cp = YY_G(yy_c_buf_p);",
1567   "",
1568   "		/* Support of yytext. */",
1569   "		*yy_cp = YY_G(yy_hold_char);",
1570   "",
1571   "		/* yy_bp points to the position in yy_ch_buf of the start of",
1572   "		 * the current run.",
1573   "		 */",
1574   "		yy_bp = yy_cp;",
1575   "",
1576   "%% [9.0] code to set up and find next match goes here",
1577   "",
1578   "yy_find_action:",
1579   "%% [10.0] code to find the action number goes here",
1580   "",
1581   "		YY_DO_BEFORE_ACTION;",
1582   "",
1583   "%% [11.0] code for yylineno update goes here",
1584   "",
1585   "do_action:	/* This label is used only to access EOF actions. */",
1586   "",
1587   "%% [12.0] debug code goes here",
1588   "",
1589   "		switch ( yy_act )",
1590   "	{ /* beginning of action switch */",
1591   "%% [13.0] actions go here",
1592   "",
1593   "	case YY_END_OF_BUFFER:",
1594   "		{",
1595   "		/* Amount of text matched not including the EOB char. */",
1596   "		int yy_amount_of_matched_text = (int) (yy_cp - YY_G(yytext_ptr)) - 1;",
1597   "",
1598   "		/* Undo the effects of YY_DO_BEFORE_ACTION. */",
1599   "		*yy_cp = YY_G(yy_hold_char);",
1600   "		YY_RESTORE_YY_MORE_OFFSET",
1601   "",
1602   "		if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )",
1603   "			{",
1604   "			/* We're scanning a new file or input source.  It's",
1605   "			 * possible that this happened because the user",
1606   "			 * just pointed yyin at a new source and called",
1607   "			 * yylex().  If so, then we have to assure",
1608   "			 * consistency between YY_CURRENT_BUFFER and our",
1609   "			 * globals.  Here is the right place to do so, because",
1610   "			 * this is the first action (other than possibly a",
1611   "			 * back-up) that will match for the new input source.",
1612   "			 */",
1613   "			YY_G(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;",
1614   "			YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;",
1615   "			YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;",
1616   "			}",
1617   "",
1618   "		/* Note that here we test for yy_c_buf_p \"<=\" to the position",
1619   "		 * of the first EOB in the buffer, since yy_c_buf_p will",
1620   "		 * already have been incremented past the NUL character",
1621   "		 * (since all states make transitions on EOB to the",
1622   "		 * end-of-buffer state).  Contrast this with the test",
1623   "		 * in input().",
1624   "		 */",
1625   "		if ( YY_G(yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[YY_G(yy_n_chars)] )",
1626   "			{ /* This was really a NUL. */",
1627   "			yy_state_type yy_next_state;",
1628   "",
1629   "			YY_G(yy_c_buf_p) = YY_G(yytext_ptr) + yy_amount_of_matched_text;",
1630   "",
1631   "			yy_current_state = yy_get_previous_state( M4_YY_CALL_ONLY_ARG );",
1632   "",
1633   "			/* Okay, we're now positioned to make the NUL",
1634   "			 * transition.  We couldn't have",
1635   "			 * yy_get_previous_state() go ahead and do it",
1636   "			 * for us because it doesn't know how to deal",
1637   "			 * with the possibility of jamming (and we don't",
1638   "			 * want to build jamming into it because then it",
1639   "			 * will run more slowly).",
1640   "			 */",
1641   "",
1642   "			yy_next_state = yy_try_NUL_trans( yy_current_state M4_YY_CALL_LAST_ARG);",
1643   "",
1644   "			yy_bp = YY_G(yytext_ptr) + YY_MORE_ADJ;",
1645   "",
1646   "			if ( yy_next_state )",
1647   "				{",
1648   "				/* Consume the NUL. */",
1649   "				yy_cp = ++YY_G(yy_c_buf_p);",
1650   "				yy_current_state = yy_next_state;",
1651   "				goto yy_match;",
1652   "				}",
1653   "",
1654   "			else",
1655   "				{",
1656   "%% [14.0] code to do back-up for compressed tables and set up yy_cp goes here",
1657   "				goto yy_find_action;",
1658   "				}",
1659   "			}",
1660   "",
1661   "		else switch ( yy_get_next_buffer( M4_YY_CALL_ONLY_ARG ) )",
1662   "			{",
1663   "			case EOB_ACT_END_OF_FILE:",
1664   "				{",
1665   "				YY_G(yy_did_buffer_switch_on_eof) = 0;",
1666   "",
1667   "				if ( yywrap( M4_YY_CALL_ONLY_ARG ) )",
1668   "					{",
1669   "					/* Note: because we've taken care in",
1670   "					 * yy_get_next_buffer() to have set up",
1671   "					 * yytext, we can now set up",
1672   "					 * yy_c_buf_p so that if some total",
1673   "					 * hoser (like flex itself) wants to",
1674   "					 * call the scanner after we return the",
1675   "					 * YY_NULL, it'll still work - another",
1676   "					 * YY_NULL will get returned.",
1677   "					 */",
1678   "					YY_G(yy_c_buf_p) = YY_G(yytext_ptr) + YY_MORE_ADJ;",
1679   "",
1680   "					yy_act = YY_STATE_EOF(YY_START);",
1681   "					goto do_action;",
1682   "					}",
1683   "",
1684   "				else",
1685   "					{",
1686   "					if ( ! YY_G(yy_did_buffer_switch_on_eof) )",
1687   "						YY_NEW_FILE;",
1688   "					}",
1689   "				break;",
1690   "				}",
1691   "",
1692   "			case EOB_ACT_CONTINUE_SCAN:",
1693   "				YY_G(yy_c_buf_p) =",
1694   "					YY_G(yytext_ptr) + yy_amount_of_matched_text;",
1695   "",
1696   "				yy_current_state = yy_get_previous_state( M4_YY_CALL_ONLY_ARG );",
1697   "",
1698   "				yy_cp = YY_G(yy_c_buf_p);",
1699   "				yy_bp = YY_G(yytext_ptr) + YY_MORE_ADJ;",
1700   "				goto yy_match;",
1701   "",
1702   "			case EOB_ACT_LAST_MATCH:",
1703   "				YY_G(yy_c_buf_p) =",
1704   "				&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[YY_G(yy_n_chars)];",
1705   "",
1706   "				yy_current_state = yy_get_previous_state( M4_YY_CALL_ONLY_ARG );",
1707   "",
1708   "				yy_cp = YY_G(yy_c_buf_p);",
1709   "				yy_bp = YY_G(yytext_ptr) + YY_MORE_ADJ;",
1710   "				goto yy_find_action;",
1711   "			}",
1712   "		break;",
1713   "		}",
1714   "",
1715   "	default:",
1716   "		YY_FATAL_ERROR(",
1717   "			\"fatal flex scanner internal error--no action found\" );",
1718   "	} /* end of action switch */",
1719   "		} /* end of scanning one token */",
1720   "} /* end of yylex */",
1721   "%ok-for-header",
1722   "",
1723   "%if-c++-only",
1724   "%not-for-header",
1725   "/* The contents of this function are C++ specific, so the YY_G macro is not used.",
1726   " */",
1727   "yyFlexLexer::yyFlexLexer( std::istream* arg_yyin, std::ostream* arg_yyout )",
1728   "{",
1729   "	yyin = arg_yyin;",
1730   "	yyout = arg_yyout;",
1731   "	yy_c_buf_p = 0;",
1732   "	yy_init = 0;",
1733   "	yy_start = 0;",
1734   "	yy_flex_debug = 0;",
1735   "	yylineno = 1;	// this will only get updated if %option yylineno",
1736   "",
1737   "	yy_did_buffer_switch_on_eof = 0;",
1738   "",
1739   "	yy_looking_for_trail_begin = 0;",
1740   "	yy_more_flag = 0;",
1741   "	yy_more_len = 0;",
1742   "	yy_more_offset = yy_prev_more_offset = 0;",
1743   "",
1744   "	yy_start_stack_ptr = yy_start_stack_depth = 0;",
1745   "	yy_start_stack = NULL;",
1746   "",
1747   "	yy_buffer_stack = 0;",
1748   "	yy_buffer_stack_top = 0;",
1749   "	yy_buffer_stack_max = 0;",
1750   "",
1751   "",
1752   "m4_ifdef( [[M4_YY_USES_REJECT]],",
1753   "[[",
1754   "	yy_state_buf = new yy_state_type[YY_STATE_BUF_SIZE];",
1755   "]],",
1756   "[[",
1757   "	yy_state_buf = 0;",
1758   "]])",
1759   "}",
1760   "",
1761   "/* The contents of this function are C++ specific, so the YY_G macro is not used.",
1762   " */",
1763   "yyFlexLexer::~yyFlexLexer()",
1764   "{",
1765   "	delete [] yy_state_buf;",
1766   "	yyfree( yy_start_stack M4_YY_CALL_LAST_ARG );",
1767   "	yy_delete_buffer( YY_CURRENT_BUFFER M4_YY_CALL_LAST_ARG);",
1768   "	yyfree( yy_buffer_stack M4_YY_CALL_LAST_ARG );",
1769   "}",
1770   "",
1771   "/* The contents of this function are C++ specific, so the YY_G macro is not used.",
1772   " */",
1773   "void yyFlexLexer::switch_streams( std::istream* new_in, std::ostream* new_out )",
1774   "{",
1775   "	if ( new_in )",
1776   "		{",
1777   "		yy_delete_buffer( YY_CURRENT_BUFFER M4_YY_CALL_LAST_ARG);",
1778   "		yy_switch_to_buffer( yy_create_buffer( new_in, YY_BUF_SIZE  M4_YY_CALL_LAST_ARG) M4_YY_CALL_LAST_ARG);",
1779   "		}",
1780   "",
1781   "	if ( new_out )",
1782   "		yyout = new_out;",
1783   "}",
1784   "",
1785   "#ifdef YY_INTERACTIVE",
1786   "int yyFlexLexer::LexerInput( char* buf, int /* max_size */ )",
1787   "#else",
1788   "int yyFlexLexer::LexerInput( char* buf, int max_size )",
1789   "#endif",
1790   "{",
1791   "	if ( yyin->eof() || yyin->fail() )",
1792   "		return 0;",
1793   "",
1794   "#ifdef YY_INTERACTIVE",
1795   "	yyin->get( buf[0] );",
1796   "",
1797   "	if ( yyin->eof() )",
1798   "		return 0;",
1799   "",
1800   "	if ( yyin->bad() )",
1801   "		return -1;",
1802   "",
1803   "	return 1;",
1804   "",
1805   "#else",
1806   "	(void) yyin->read( buf, max_size );",
1807   "",
1808   "	if ( yyin->bad() )",
1809   "		return -1;",
1810   "	else",
1811   "		return yyin->gcount();",
1812   "#endif",
1813   "}",
1814   "",
1815   "void yyFlexLexer::LexerOutput( const char* buf, int size )",
1816   "{",
1817   "	(void) yyout->write( buf, size );",
1818   "}",
1819   "%ok-for-header",
1820   "%endif",
1821   "",
1822   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
1823   "[[",
1824   "/* yy_get_next_buffer - try to read in a new buffer",
1825   " *",
1826   " * Returns a code representing an action:",
1827   " *	EOB_ACT_LAST_MATCH -",
1828   " *	EOB_ACT_CONTINUE_SCAN - continue scanning from current position",
1829   " *	EOB_ACT_END_OF_FILE - end of file",
1830   " */",
1831   "%if-c-only",
1832   "static int yy_get_next_buffer YYFARGS0(void)",
1833   "%endif",
1834   "%if-c++-only",
1835   "int yyFlexLexer::yy_get_next_buffer()",
1836   "%endif",
1837   "{",
1838   "    M4_YY_DECL_GUTS_VAR();",
1839   "	char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;",
1840   "	char *source = YY_G(yytext_ptr);",
1841   "	int number_to_move, i;",
1842   "	int ret_val;",
1843   "",
1844   "	if ( YY_G(yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[YY_G(yy_n_chars) + 1] )",
1845   "		YY_FATAL_ERROR(",
1846   "		\"fatal flex scanner internal error--end of buffer missed\" );",
1847   "",
1848   "	if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )",
1849   "		{ /* Don't try to fill the buffer, so this is an EOF. */",
1850   "		if ( YY_G(yy_c_buf_p) - YY_G(yytext_ptr) - YY_MORE_ADJ == 1 )",
1851   "			{",
1852   "			/* We matched a single character, the EOB, so",
1853   "			 * treat this as a final EOF.",
1854   "			 */",
1855   "			return EOB_ACT_END_OF_FILE;",
1856   "			}",
1857   "",
1858   "		else",
1859   "			{",
1860   "			/* We matched some text prior to the EOB, first",
1861   "			 * process it.",
1862   "			 */",
1863   "			return EOB_ACT_LAST_MATCH;",
1864   "			}",
1865   "		}",
1866   "",
1867   "	/* Try to read more data. */",
1868   "",
1869   "	/* First move last chars to start of buffer. */",
1870   "	number_to_move = (int) (YY_G(yy_c_buf_p) - YY_G(yytext_ptr)) - 1;",
1871   "",
1872   "	for ( i = 0; i < number_to_move; ++i )",
1873   "		*(dest++) = *(source++);",
1874   "",
1875   "	if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )",
1876   "		/* don't do the read, it's not guaranteed to return an EOF,",
1877   "		 * just force an EOF",
1878   "		 */",
1879   "		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = YY_G(yy_n_chars) = 0;",
1880   "",
1881   "	else",
1882   "		{",
1883   "			yy_size_t num_to_read =",
1884   "			YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;",
1885   "",
1886   "		while ( num_to_read <= 0 )",
1887   "			{ /* Not enough room in the buffer - grow it. */",
1888   "m4_ifdef( [[M4_YY_USES_REJECT]],",
1889   "[[",
1890   "			YY_FATAL_ERROR(",
1891   "\"input buffer overflow, can't enlarge buffer because scanner uses REJECT\" );",
1892   "]],",
1893   "[[",
1894   "			/* just a shorter name for the current buffer */",
1895   "			YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;",
1896   "",
1897   "			int yy_c_buf_p_offset =",
1898   "				(int) (YY_G(yy_c_buf_p) - b->yy_ch_buf);",
1899   "",
1900   "			if ( b->yy_is_our_buffer )",
1901   "				{",
1902   "				yy_size_t new_size = b->yy_buf_size * 2;",
1903   "",
1904   "				if ( new_size <= 0 )",
1905   "					b->yy_buf_size += b->yy_buf_size / 8;",
1906   "				else",
1907   "					b->yy_buf_size *= 2;",
1908   "",
1909   "				b->yy_ch_buf = (char *)",
1910   "					/* Include room in for 2 EOB chars. */",
1911   "					yyrealloc( (void *) b->yy_ch_buf,",
1912   "							 b->yy_buf_size + 2 M4_YY_CALL_LAST_ARG );",
1913   "				}",
1914   "			else",
1915   "				/* Can't grow it, we don't own it. */",
1916   "				b->yy_ch_buf = 0;",
1917   "",
1918   "			if ( ! b->yy_ch_buf )",
1919   "				YY_FATAL_ERROR(",
1920   "				\"fatal error - scanner input buffer overflow\" );",
1921   "",
1922   "			YY_G(yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];",
1923   "",
1924   "			num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -",
1925   "						number_to_move - 1;",
1926   "]])",
1927   "			}",
1928   "",
1929   "		if ( num_to_read > YY_READ_BUF_SIZE )",
1930   "			num_to_read = YY_READ_BUF_SIZE;",
1931   "",
1932   "		/* Read in more data. */",
1933   "		YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),",
1934   "			YY_G(yy_n_chars), num_to_read );",
1935   "",
1936   "		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = YY_G(yy_n_chars);",
1937   "		}",
1938   "",
1939   "	if ( YY_G(yy_n_chars) == 0 )",
1940   "		{",
1941   "		if ( number_to_move == YY_MORE_ADJ )",
1942   "			{",
1943   "			ret_val = EOB_ACT_END_OF_FILE;",
1944   "			yyrestart( yyin  M4_YY_CALL_LAST_ARG);",
1945   "			}",
1946   "",
1947   "		else",
1948   "			{",
1949   "			ret_val = EOB_ACT_LAST_MATCH;",
1950   "			YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =",
1951   "				YY_BUFFER_EOF_PENDING;",
1952   "			}",
1953   "		}",
1954   "",
1955   "	else",
1956   "		ret_val = EOB_ACT_CONTINUE_SCAN;",
1957   "",
1958   "	if ((yy_size_t) (YY_G(yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {",
1959   "		/* Extend the array by 50%, plus the number we really need. */",
1960   "		yy_size_t new_size = YY_G(yy_n_chars) + number_to_move + (YY_G(yy_n_chars) >> 1);",
1961   "		YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(",
1962   "			(void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, new_size M4_YY_CALL_LAST_ARG );",
1963   "		if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )",
1964   "			YY_FATAL_ERROR( \"out of dynamic memory in yy_get_next_buffer()\" );",
1965   "	}",
1966   "",
1967   "	YY_G(yy_n_chars) += number_to_move;",
1968   "	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[YY_G(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;",
1969   "	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[YY_G(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;",
1970   "",
1971   "	YY_G(yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];",
1972   "",
1973   "	return ret_val;",
1974   "}",
1975   "]])",
1976   "",
1977   "/* yy_get_previous_state - get the state just before the EOB char was reached */",
1978   "",
1979   "%if-c-only",
1980   "%not-for-header",
1981   "    static yy_state_type yy_get_previous_state YYFARGS0(void)",
1982   "%endif",
1983   "%if-c++-only",
1984   "    yy_state_type yyFlexLexer::yy_get_previous_state()",
1985   "%endif",
1986   "{",
1987   "	yy_state_type yy_current_state;",
1988   "	char *yy_cp;",
1989   "    M4_YY_DECL_GUTS_VAR();",
1990   "",
1991   "%% [15.0] code to get the start state into yy_current_state goes here",
1992   "",
1993   "	for ( yy_cp = YY_G(yytext_ptr) + YY_MORE_ADJ; yy_cp < YY_G(yy_c_buf_p); ++yy_cp )",
1994   "		{",
1995   "%% [16.0] code to find the next state goes here",
1996   "		}",
1997   "",
1998   "	return yy_current_state;",
1999   "}",
2000   "",
2001   "",
2002   "/* yy_try_NUL_trans - try to make a transition on the NUL character",
2003   " *",
2004   " * synopsis",
2005   " *	next_state = yy_try_NUL_trans( current_state );",
2006   " */",
2007   "%if-c-only",
2008   "    static yy_state_type yy_try_NUL_trans  YYFARGS1( yy_state_type, yy_current_state)",
2009   "%endif",
2010   "%if-c++-only",
2011   "    yy_state_type yyFlexLexer::yy_try_NUL_trans( yy_state_type yy_current_state )",
2012   "%endif",
2013   "{",
2014   "	int yy_is_jam;",
2015   "    M4_YY_DECL_GUTS_VAR(); /* This var may be unused depending upon options. */",
2016   "%% [17.0] code to find the next state, and perhaps do backing up, goes here",
2017   "",
2018   "	M4_YY_NOOP_GUTS_VAR();",
2019   "	return yy_is_jam ? 0 : yy_current_state;",
2020   "}",
2021   "",
2022   "",
2023   "%if-c-only",
2024   "m4_ifdef( [[M4_YY_NO_UNPUT]],,",
2025   "[[",
2026   "#ifndef YY_NO_UNPUT",
2027   "    static void yyunput YYFARGS2( int,c, char *,yy_bp)",
2028   "%endif",
2029   "%if-c++-only",
2030   "#ifndef YY_NO_UNPUT",
2031   "    void yyFlexLexer::yyunput( int c, char* yy_bp)",
2032   "%endif",
2033   "{",
2034   "	char *yy_cp;",
2035   "    M4_YY_DECL_GUTS_VAR();",
2036   "",
2037   "    yy_cp = YY_G(yy_c_buf_p);",
2038   "",
2039   "	/* undo effects of setting up yytext */",
2040   "	*yy_cp = YY_G(yy_hold_char);",
2041   "",
2042   "	if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )",
2043   "		{ /* need to shift things up to make room */",
2044   "		/* +2 for EOB chars. */",
2045   "		yy_size_t number_to_move = YY_G(yy_n_chars) + 2;",
2046   "		char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[",
2047   "					YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];",
2048   "		char *source =",
2049   "				&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];",
2050   "",
2051   "		while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )",
2052   "			*--dest = *--source;",
2053   "",
2054   "		yy_cp += (int) (dest - source);",
2055   "		yy_bp += (int) (dest - source);",
2056   "		YY_CURRENT_BUFFER_LVALUE->yy_n_chars =",
2057   "			YY_G(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;",
2058   "",
2059   "		if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )",
2060   "			YY_FATAL_ERROR( \"flex scanner push-back overflow\" );",
2061   "		}",
2062   "",
2063   "	*--yy_cp = (char) c;",
2064   "",
2065   "%% [18.0] update yylineno here",
2066   "m4_ifdef( [[M4_YY_USE_LINENO]],",
2067   "[[",
2068   "    if ( c == '\\n' ){",
2069   "        --yylineno;",
2070   "    }",
2071   "]])",
2072   "",
2073   "	YY_G(yytext_ptr) = yy_bp;",
2074   "	YY_G(yy_hold_char) = *yy_cp;",
2075   "	YY_G(yy_c_buf_p) = yy_cp;",
2076   "}",
2077   "#endif	/* ifndef YY_NO_UNPUT */",
2078   "%if-c-only",
2079   "]])",
2080   "%endif",
2081   "",
2082   "%if-c-only",
2083   "#ifndef YY_NO_INPUT",
2084   "#ifdef __cplusplus",
2085   "    static int yyinput YYFARGS0(void)",
2086   "#else",
2087   "    static int input  YYFARGS0(void)",
2088   "#endif",
2089   "",
2090   "%endif",
2091   "%if-c++-only",
2092   "    int yyFlexLexer::yyinput()",
2093   "%endif",
2094   "{",
2095   "	int c;",
2096   "    M4_YY_DECL_GUTS_VAR();",
2097   "",
2098   "	*YY_G(yy_c_buf_p) = YY_G(yy_hold_char);",
2099   "",
2100   "	if ( *YY_G(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )",
2101   "		{",
2102   "		/* yy_c_buf_p now points to the character we want to return.",
2103   "		 * If this occurs *before* the EOB characters, then it's a",
2104   "		 * valid NUL; if not, then we've hit the end of the buffer.",
2105   "		 */",
2106   "		if ( YY_G(yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[YY_G(yy_n_chars)] )",
2107   "			/* This was really a NUL. */",
2108   "			*YY_G(yy_c_buf_p) = '\\0';",
2109   "",
2110   "		else",
2111   "			{ /* need more input */",
2112   "			yy_size_t offset = YY_G(yy_c_buf_p) - YY_G(yytext_ptr);",
2113   "			++YY_G(yy_c_buf_p);",
2114   "",
2115   "			switch ( yy_get_next_buffer( M4_YY_CALL_ONLY_ARG ) )",
2116   "				{",
2117   "				case EOB_ACT_LAST_MATCH:",
2118   "					/* This happens because yy_g_n_b()",
2119   "					 * sees that we've accumulated a",
2120   "					 * token and flags that we need to",
2121   "					 * try matching the token before",
2122   "					 * proceeding.  But for input(),",
2123   "					 * there's no matching to consider.",
2124   "					 * So convert the EOB_ACT_LAST_MATCH",
2125   "					 * to EOB_ACT_END_OF_FILE.",
2126   "					 */",
2127   "",
2128   "					/* Reset buffer status. */",
2129   "					yyrestart( yyin M4_YY_CALL_LAST_ARG);",
2130   "",
2131   "					/*FALLTHROUGH*/",
2132   "",
2133   "				case EOB_ACT_END_OF_FILE:",
2134   "					{",
2135   "					if ( yywrap( M4_YY_CALL_ONLY_ARG ) )",
2136   "						return EOF;",
2137   "",
2138   "					if ( ! YY_G(yy_did_buffer_switch_on_eof) )",
2139   "						YY_NEW_FILE;",
2140   "#ifdef __cplusplus",
2141   "					return yyinput(M4_YY_CALL_ONLY_ARG);",
2142   "#else",
2143   "					return input(M4_YY_CALL_ONLY_ARG);",
2144   "#endif",
2145   "					}",
2146   "",
2147   "				case EOB_ACT_CONTINUE_SCAN:",
2148   "					YY_G(yy_c_buf_p) = YY_G(yytext_ptr) + offset;",
2149   "					break;",
2150   "				}",
2151   "			}",
2152   "		}",
2153   "",
2154   "	c = *(unsigned char *) YY_G(yy_c_buf_p);	/* cast for 8-bit char's */",
2155   "	*YY_G(yy_c_buf_p) = '\\0';	/* preserve yytext */",
2156   "	YY_G(yy_hold_char) = *++YY_G(yy_c_buf_p);",
2157   "",
2158   "%% [19.0] update BOL and yylineno",
2159   "",
2160   "	return c;",
2161   "}",
2162   "%if-c-only",
2163   "#endif	/* ifndef YY_NO_INPUT */",
2164   "%endif",
2165   "",
2166   "/** Immediately switch to a different input stream.",
2167   " * @param input_file A readable stream.",
2168   " * M4_YY_DOC_PARAM",
2169   " * @note This function does not reset the start condition to @c INITIAL .",
2170   " */",
2171   "%if-c-only",
2172   "    void yyrestart  YYFARGS1( FILE *,input_file)",
2173   "%endif",
2174   "%if-c++-only",
2175   "    void yyFlexLexer::yyrestart( std::istream* input_file )",
2176   "%endif",
2177   "{",
2178   "    M4_YY_DECL_GUTS_VAR();",
2179   "",
2180   "	if ( ! YY_CURRENT_BUFFER ){",
2181   "        yyensure_buffer_stack (M4_YY_CALL_ONLY_ARG);",
2182   "		YY_CURRENT_BUFFER_LVALUE =",
2183   "            yy_create_buffer( yyin, YY_BUF_SIZE M4_YY_CALL_LAST_ARG);",
2184   "	}",
2185   "",
2186   "	yy_init_buffer( YY_CURRENT_BUFFER, input_file M4_YY_CALL_LAST_ARG);",
2187   "	yy_load_buffer_state( M4_YY_CALL_ONLY_ARG );",
2188   "}",
2189   "",
2190   "/** Switch to a different input buffer.",
2191   " * @param new_buffer The new input buffer.",
2192   " * M4_YY_DOC_PARAM",
2193   " */",
2194   "%if-c-only",
2195   "    void yy_switch_to_buffer  YYFARGS1( YY_BUFFER_STATE ,new_buffer)",
2196   "%endif",
2197   "%if-c++-only",
2198   "    void yyFlexLexer::yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )",
2199   "%endif",
2200   "{",
2201   "    M4_YY_DECL_GUTS_VAR();",
2202   "",
2203   "	/* TODO. We should be able to replace this entire function body",
2204   "	 * with",
2205   "	 *		yypop_buffer_state();",
2206   "	 *		yypush_buffer_state(new_buffer);",
2207   "     */",
2208   "	yyensure_buffer_stack (M4_YY_CALL_ONLY_ARG);",
2209   "	if ( YY_CURRENT_BUFFER == new_buffer )",
2210   "		return;",
2211   "",
2212   "	if ( YY_CURRENT_BUFFER )",
2213   "		{",
2214   "		/* Flush out information for old buffer. */",
2215   "		*YY_G(yy_c_buf_p) = YY_G(yy_hold_char);",
2216   "		YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = YY_G(yy_c_buf_p);",
2217   "		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = YY_G(yy_n_chars);",
2218   "		}",
2219   "",
2220   "	YY_CURRENT_BUFFER_LVALUE = new_buffer;",
2221   "	yy_load_buffer_state( M4_YY_CALL_ONLY_ARG );",
2222   "",
2223   "	/* We don't actually know whether we did this switch during",
2224   "	 * EOF (yywrap()) processing, but the only time this flag",
2225   "	 * is looked at is after yywrap() is called, so it's safe",
2226   "	 * to go ahead and always set it.",
2227   "	 */",
2228   "	YY_G(yy_did_buffer_switch_on_eof) = 1;",
2229   "}",
2230   "",
2231   "",
2232   "%if-c-only",
2233   "static void yy_load_buffer_state  YYFARGS0(void)",
2234   "%endif",
2235   "%if-c++-only",
2236   "    void yyFlexLexer::yy_load_buffer_state()",
2237   "%endif",
2238   "{",
2239   "    M4_YY_DECL_GUTS_VAR();",
2240   "	YY_G(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;",
2241   "	YY_G(yytext_ptr) = YY_G(yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;",
2242   "	yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;",
2243   "	YY_G(yy_hold_char) = *YY_G(yy_c_buf_p);",
2244   "}",
2245   "",
2246   "/** Allocate and initialize an input buffer state.",
2247   " * @param file A readable stream.",
2248   " * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.",
2249   " * M4_YY_DOC_PARAM",
2250   " * @return the allocated buffer state.",
2251   " */",
2252   "%if-c-only",
2253   "    YY_BUFFER_STATE yy_create_buffer  YYFARGS2( FILE *,file, int ,size)",
2254   "%endif",
2255   "%if-c++-only",
2256   "    YY_BUFFER_STATE yyFlexLexer::yy_create_buffer( std::istream* file, int size )",
2257   "%endif",
2258   "{",
2259   "	YY_BUFFER_STATE b;",
2260   "    m4_dnl M4_YY_DECL_GUTS_VAR();",
2261   "",
2262   "	b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) M4_YY_CALL_LAST_ARG );",
2263   "	if ( ! b )",
2264   "		YY_FATAL_ERROR( \"out of dynamic memory in yy_create_buffer()\" );",
2265   "",
2266   "	b->yy_buf_size = size;",
2267   "",
2268   "	/* yy_ch_buf has to be 2 characters longer than the size given because",
2269   "	 * we need to put in 2 end-of-buffer characters.",
2270   "	 */",
2271   "	b->yy_ch_buf = (char *) yyalloc( b->yy_buf_size + 2 M4_YY_CALL_LAST_ARG );",
2272   "	if ( ! b->yy_ch_buf )",
2273   "		YY_FATAL_ERROR( \"out of dynamic memory in yy_create_buffer()\" );",
2274   "",
2275   "	b->yy_is_our_buffer = 1;",
2276   "",
2277   "	yy_init_buffer( b, file M4_YY_CALL_LAST_ARG);",
2278   "",
2279   "	return b;",
2280   "}",
2281   "",
2282   "/** Destroy the buffer.",
2283   " * @param b a buffer created with yy_create_buffer()",
2284   " * M4_YY_DOC_PARAM",
2285   " */",
2286   "%if-c-only",
2287   "    void yy_delete_buffer YYFARGS1( YY_BUFFER_STATE ,b)",
2288   "%endif",
2289   "%if-c++-only",
2290   "    void yyFlexLexer::yy_delete_buffer( YY_BUFFER_STATE b )",
2291   "%endif",
2292   "{",
2293   "    M4_YY_DECL_GUTS_VAR();",
2294   "",
2295   "	if ( ! b )",
2296   "		return;",
2297   "",
2298   "	if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */",
2299   "		YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;",
2300   "",
2301   "	if ( b->yy_is_our_buffer )",
2302   "		yyfree( (void *) b->yy_ch_buf M4_YY_CALL_LAST_ARG );",
2303   "",
2304   "	yyfree( (void *) b M4_YY_CALL_LAST_ARG );",
2305   "}",
2306   "",
2307   "",
2308   "/* Initializes or reinitializes a buffer.",
2309   " * This function is sometimes called more than once on the same buffer,",
2310   " * such as during a yyrestart() or at EOF.",
2311   " */",
2312   "%if-c-only",
2313   "    static void yy_init_buffer  YYFARGS2( YY_BUFFER_STATE ,b, FILE *,file)",
2314   "%endif",
2315   "%if-c++-only",
2316   "    void yyFlexLexer::yy_init_buffer( YY_BUFFER_STATE b, std::istream* file )",
2317   "%endif",
2318   "",
2319   "{",
2320   "	int oerrno = errno;",
2321   "    M4_YY_DECL_GUTS_VAR();",
2322   "",
2323   "	yy_flush_buffer( b M4_YY_CALL_LAST_ARG);",
2324   "",
2325   "	b->yy_input_file = file;",
2326   "	b->yy_fill_buffer = 1;",
2327   "",
2328   "    /* If b is the current buffer, then yy_init_buffer was _probably_",
2329   "     * called from yyrestart() or through yy_get_next_buffer.",
2330   "     * In that case, we don't want to reset the lineno or column.",
2331   "     */",
2332   "    if (b != YY_CURRENT_BUFFER){",
2333   "        b->yy_bs_lineno = 1;",
2334   "        b->yy_bs_column = 0;",
2335   "    }",
2336   "",
2337   "%if-c-only",
2338   "m4_ifdef( [[M4_YY_ALWAYS_INTERACTIVE]],",
2339   "[[",
2340   "	b->yy_is_interactive = 1;",
2341   "]],",
2342   "[[",
2343   "    m4_ifdef( [[M4_YY_NEVER_INTERACTIVE]],",
2344   "    [[",
2345   "        b->yy_is_interactive = 0;",
2346   "    ]],",
2347   "    [[",
2348   "        b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;",
2349   "    ]])",
2350   "]])",
2351   "%endif",
2352   "%if-c++-only",
2353   "	b->yy_is_interactive = 0;",
2354   "%endif",
2355   "	errno = oerrno;",
2356   "}",
2357   "",
2358   "/** Discard all buffered characters. On the next scan, YY_INPUT will be called.",
2359   " * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.",
2360   " * M4_YY_DOC_PARAM",
2361   " */",
2362   "%if-c-only",
2363   "    void yy_flush_buffer YYFARGS1( YY_BUFFER_STATE ,b)",
2364   "%endif",
2365   "%if-c++-only",
2366   "    void yyFlexLexer::yy_flush_buffer( YY_BUFFER_STATE b )",
2367   "%endif",
2368   "{",
2369   "    M4_YY_DECL_GUTS_VAR();",
2370   "	if ( ! b )",
2371   "		return;",
2372   "",
2373   "	b->yy_n_chars = 0;",
2374   "",
2375   "	/* We always need two end-of-buffer characters.  The first causes",
2376   "	 * a transition to the end-of-buffer state.  The second causes",
2377   "	 * a jam in that state.",
2378   "	 */",
2379   "	b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;",
2380   "	b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;",
2381   "",
2382   "	b->yy_buf_pos = &b->yy_ch_buf[0];",
2383   "",
2384   "	b->yy_at_bol = 1;",
2385   "	b->yy_buffer_status = YY_BUFFER_NEW;",
2386   "",
2387   "	if ( b == YY_CURRENT_BUFFER )",
2388   "		yy_load_buffer_state( M4_YY_CALL_ONLY_ARG );",
2389   "}",
2390   "",
2391   "%if-c-or-c++",
2392   "/** Pushes the new state onto the stack. The new state becomes",
2393   " *  the current state. This function will allocate the stack",
2394   " *  if necessary.",
2395   " *  @param new_buffer The new state.",
2396   " *  M4_YY_DOC_PARAM",
2397   " */",
2398   "%if-c-only",
2399   "void yypush_buffer_state YYFARGS1(YY_BUFFER_STATE,new_buffer)",
2400   "%endif",
2401   "%if-c++-only",
2402   "void yyFlexLexer::yypush_buffer_state (YY_BUFFER_STATE new_buffer)",
2403   "%endif",
2404   "{",
2405   "    M4_YY_DECL_GUTS_VAR();",
2406   "	if (new_buffer == NULL)",
2407   "		return;",
2408   "",
2409   "	yyensure_buffer_stack(M4_YY_CALL_ONLY_ARG);",
2410   "",
2411   "	/* This block is copied from yy_switch_to_buffer. */",
2412   "	if ( YY_CURRENT_BUFFER )",
2413   "		{",
2414   "		/* Flush out information for old buffer. */",
2415   "		*YY_G(yy_c_buf_p) = YY_G(yy_hold_char);",
2416   "		YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = YY_G(yy_c_buf_p);",
2417   "		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = YY_G(yy_n_chars);",
2418   "		}",
2419   "",
2420   "	/* Only push if top exists. Otherwise, replace top. */",
2421   "	if (YY_CURRENT_BUFFER)",
2422   "		YY_G(yy_buffer_stack_top)++;",
2423   "	YY_CURRENT_BUFFER_LVALUE = new_buffer;",
2424   "",
2425   "	/* copied from yy_switch_to_buffer. */",
2426   "	yy_load_buffer_state( M4_YY_CALL_ONLY_ARG );",
2427   "	YY_G(yy_did_buffer_switch_on_eof) = 1;",
2428   "}",
2429   "%endif",
2430   "",
2431   "",
2432   "%if-c-or-c++",
2433   "/** Removes and deletes the top of the stack, if present.",
2434   " *  The next element becomes the new top.",
2435   " *  M4_YY_DOC_PARAM",
2436   " */",
2437   "%if-c-only",
2438   "void yypop_buffer_state YYFARGS0(void)",
2439   "%endif",
2440   "%if-c++-only",
2441   "void yyFlexLexer::yypop_buffer_state (void)",
2442   "%endif",
2443   "{",
2444   "    M4_YY_DECL_GUTS_VAR();",
2445   "	if (!YY_CURRENT_BUFFER)",
2446   "		return;",
2447   "",
2448   "	yy_delete_buffer(YY_CURRENT_BUFFER M4_YY_CALL_LAST_ARG);",
2449   "	YY_CURRENT_BUFFER_LVALUE = NULL;",
2450   "	if (YY_G(yy_buffer_stack_top) > 0)",
2451   "		--YY_G(yy_buffer_stack_top);",
2452   "",
2453   "	if (YY_CURRENT_BUFFER) {",
2454   "		yy_load_buffer_state( M4_YY_CALL_ONLY_ARG );",
2455   "		YY_G(yy_did_buffer_switch_on_eof) = 1;",
2456   "	}",
2457   "}",
2458   "%endif",
2459   "",
2460   "",
2461   "%if-c-or-c++",
2462   "/* Allocates the stack if it does not exist.",
2463   " *  Guarantees space for at least one push.",
2464   " */",
2465   "%if-c-only",
2466   "static void yyensure_buffer_stack YYFARGS0(void)",
2467   "%endif",
2468   "%if-c++-only",
2469   "void yyFlexLexer::yyensure_buffer_stack(void)",
2470   "%endif",
2471   "{",
2472   "	yy_size_t num_to_alloc;",
2473   "    M4_YY_DECL_GUTS_VAR();",
2474   "",
2475   "	if (!YY_G(yy_buffer_stack)) {",
2476   "",
2477   "		/* First allocation is just for 2 elements, since we don't know if this",
2478   "		 * scanner will even need a stack. We use 2 instead of 1 to avoid an",
2479   "		 * immediate realloc on the next call.",
2480   "         */",
2481   "		num_to_alloc = 1;",
2482   "		YY_G(yy_buffer_stack) = (struct yy_buffer_state**)yyalloc",
2483   "								(num_to_alloc * sizeof(struct yy_buffer_state*)",
2484   "								M4_YY_CALL_LAST_ARG);",
2485   "		if ( ! YY_G(yy_buffer_stack) )",
2486   "			YY_FATAL_ERROR( \"out of dynamic memory in yyensure_buffer_stack()\" );",
2487   "								  ",
2488   "		",
2489   "		memset(YY_G(yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));",
2490   "				",
2491   "		YY_G(yy_buffer_stack_max) = num_to_alloc;",
2492   "		YY_G(yy_buffer_stack_top) = 0;",
2493   "		return;",
2494   "	}",
2495   "",
2496   "	if (YY_G(yy_buffer_stack_top) >= (YY_G(yy_buffer_stack_max)) - 1){",
2497   "",
2498   "		/* Increase the buffer to prepare for a possible push. */",
2499   "		int grow_size = 8 /* arbitrary grow size */;",
2500   "",
2501   "		num_to_alloc = YY_G(yy_buffer_stack_max) + grow_size;",
2502   "		YY_G(yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc",
2503   "								(YY_G(yy_buffer_stack),",
2504   "								num_to_alloc * sizeof(struct yy_buffer_state*)",
2505   "								M4_YY_CALL_LAST_ARG);",
2506   "		if ( ! YY_G(yy_buffer_stack) )",
2507   "			YY_FATAL_ERROR( \"out of dynamic memory in yyensure_buffer_stack()\" );",
2508   "",
2509   "		/* zero only the new slots.*/",
2510   "		memset(YY_G(yy_buffer_stack) + YY_G(yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));",
2511   "		YY_G(yy_buffer_stack_max) = num_to_alloc;",
2512   "	}",
2513   "}",
2514   "%endif",
2515   "",
2516   "",
2517   "",
2518   "",
2519   "m4_ifdef( [[M4_YY_NO_SCAN_BUFFER]],,",
2520   "[[",
2521   "%if-c-only",
2522   "/** Setup the input buffer state to scan directly from a user-specified character buffer.",
2523   " * @param base the character buffer",
2524   " * @param size the size in bytes of the character buffer",
2525   " * M4_YY_DOC_PARAM",
2526   " * @return the newly allocated buffer state object. ",
2527   " */",
2528   "YY_BUFFER_STATE yy_scan_buffer  YYFARGS2( char *,base, yy_size_t ,size)",
2529   "{",
2530   "	YY_BUFFER_STATE b;",
2531   "    m4_dnl M4_YY_DECL_GUTS_VAR();",
2532   "",
2533   "	if ( size < 2 ||",
2534   "	     base[size-2] != YY_END_OF_BUFFER_CHAR ||",
2535   "	     base[size-1] != YY_END_OF_BUFFER_CHAR )",
2536   "		/* They forgot to leave room for the EOB's. */",
2537   "		return 0;",
2538   "",
2539   "	b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) M4_YY_CALL_LAST_ARG );",
2540   "	if ( ! b )",
2541   "		YY_FATAL_ERROR( \"out of dynamic memory in yy_scan_buffer()\" );",
2542   "",
2543   "	b->yy_buf_size = size - 2;	/* \"- 2\" to take care of EOB's */",
2544   "	b->yy_buf_pos = b->yy_ch_buf = base;",
2545   "	b->yy_is_our_buffer = 0;",
2546   "	b->yy_input_file = 0;",
2547   "	b->yy_n_chars = b->yy_buf_size;",
2548   "	b->yy_is_interactive = 0;",
2549   "	b->yy_at_bol = 1;",
2550   "	b->yy_fill_buffer = 0;",
2551   "	b->yy_buffer_status = YY_BUFFER_NEW;",
2552   "",
2553   "	yy_switch_to_buffer( b M4_YY_CALL_LAST_ARG );",
2554   "",
2555   "	return b;",
2556   "}",
2557   "%endif",
2558   "]])",
2559   "",
2560   "",
2561   "m4_ifdef( [[M4_YY_NO_SCAN_STRING]],,",
2562   "[[",
2563   "%if-c-only",
2564   "/** Setup the input buffer state to scan a string. The next call to yylex() will",
2565   " * scan from a @e copy of @a str.",
2566   " * @param yystr a NUL-terminated string to scan",
2567   " * M4_YY_DOC_PARAM",
2568   " * @return the newly allocated buffer state object.",
2569   " * @note If you want to scan bytes that may contain NUL values, then use",
2570   " *       yy_scan_bytes() instead.",
2571   " */",
2572   "YY_BUFFER_STATE yy_scan_string YYFARGS1( yyconst char *, yystr)",
2573   "{",
2574   "    m4_dnl M4_YY_DECL_GUTS_VAR();",
2575   "",
2576   "	return yy_scan_bytes( yystr, strlen(yystr) M4_YY_CALL_LAST_ARG);",
2577   "}",
2578   "%endif",
2579   "]])",
2580   "",
2581   "",
2582   "m4_ifdef( [[M4_YY_NO_SCAN_BYTES]],,",
2583   "[[",
2584   "%if-c-only",
2585   "/** Setup the input buffer state to scan the given bytes. The next call to yylex() will",
2586   " * scan from a @e copy of @a bytes.",
2587   " * @param yybytes the byte buffer to scan",
2588   " * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.",
2589   " * M4_YY_DOC_PARAM",
2590   " * @return the newly allocated buffer state object.",
2591   " */",
2592   "YY_BUFFER_STATE yy_scan_bytes  YYFARGS2( yyconst char *,yybytes, yy_size_t ,_yybytes_len)",
2593   "{",
2594   "	YY_BUFFER_STATE b;",
2595   "	char *buf;",
2596   "	yy_size_t n;",
2597   "	yy_size_t i;",
2598   "    m4_dnl M4_YY_DECL_GUTS_VAR();",
2599   "",
2600   "	/* Get memory for full buffer, including space for trailing EOB's. */",
2601   "	n = _yybytes_len + 2;",
2602   "	buf = (char *) yyalloc( n M4_YY_CALL_LAST_ARG );",
2603   "	if ( ! buf )",
2604   "		YY_FATAL_ERROR( \"out of dynamic memory in yy_scan_bytes()\" );",
2605   "",
2606   "	for ( i = 0; i < _yybytes_len; ++i )",
2607   "		buf[i] = yybytes[i];",
2608   "",
2609   "	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;",
2610   "",
2611   "	b = yy_scan_buffer( buf, n M4_YY_CALL_LAST_ARG);",
2612   "	if ( ! b )",
2613   "		YY_FATAL_ERROR( \"bad buffer in yy_scan_bytes()\" );",
2614   "",
2615   "	/* It's okay to grow etc. this buffer, and we should throw it",
2616   "	 * away when we're done.",
2617   "	 */",
2618   "	b->yy_is_our_buffer = 1;",
2619   "",
2620   "	return b;",
2621   "}",
2622   "%endif",
2623   "]])",
2624   "",
2625   "",
2626   "m4_ifdef( [[M4_YY_NO_PUSH_STATE]],,",
2627   "[[",
2628   "%if-c-only",
2629   "    static void yy_push_state YYFARGS1( int ,new_state)",
2630   "%endif",
2631   "%if-c++-only",
2632   "    void yyFlexLexer::yy_push_state( int new_state )",
2633   "%endif",
2634   "{",
2635   "    M4_YY_DECL_GUTS_VAR();",
2636   "	if ( YY_G(yy_start_stack_ptr) >= YY_G(yy_start_stack_depth) )",
2637   "		{",
2638   "		yy_size_t new_size;",
2639   "",
2640   "		YY_G(yy_start_stack_depth) += YY_START_STACK_INCR;",
2641   "		new_size = YY_G(yy_start_stack_depth) * sizeof( int );",
2642   "",
2643   "		if ( ! YY_G(yy_start_stack) )",
2644   "			YY_G(yy_start_stack) = (int *) yyalloc( new_size M4_YY_CALL_LAST_ARG );",
2645   "",
2646   "		else",
2647   "			YY_G(yy_start_stack) = (int *) yyrealloc(",
2648   "					(void *) YY_G(yy_start_stack), new_size M4_YY_CALL_LAST_ARG );",
2649   "",
2650   "		if ( ! YY_G(yy_start_stack) )",
2651   "			YY_FATAL_ERROR( \"out of memory expanding start-condition stack\" );",
2652   "		}",
2653   "",
2654   "	YY_G(yy_start_stack)[YY_G(yy_start_stack_ptr)++] = YY_START;",
2655   "",
2656   "	BEGIN(new_state);",
2657   "}",
2658   "]])",
2659   "",
2660   "",
2661   "m4_ifdef( [[M4_YY_NO_POP_STATE]],,",
2662   "[[",
2663   "%if-c-only",
2664   "    static void yy_pop_state  YYFARGS0(void)",
2665   "%endif",
2666   "%if-c++-only",
2667   "    void yyFlexLexer::yy_pop_state()",
2668   "%endif",
2669   "{",
2670   "    M4_YY_DECL_GUTS_VAR();",
2671   "	if ( --YY_G(yy_start_stack_ptr) < 0 )",
2672   "		YY_FATAL_ERROR( \"start-condition stack underflow\" );",
2673   "",
2674   "	BEGIN(YY_G(yy_start_stack)[YY_G(yy_start_stack_ptr)]);",
2675   "}",
2676   "]])",
2677   "",
2678   "",
2679   "m4_ifdef( [[M4_YY_NO_TOP_STATE]],,",
2680   "[[",
2681   "%if-c-only",
2682   "    static int yy_top_state  YYFARGS0(void)",
2683   "%endif",
2684   "%if-c++-only",
2685   "    int yyFlexLexer::yy_top_state()",
2686   "%endif",
2687   "{",
2688   "    M4_YY_DECL_GUTS_VAR();",
2689   "	return YY_G(yy_start_stack)[YY_G(yy_start_stack_ptr) - 1];",
2690   "}",
2691   "]])",
2692   "",
2693   "#ifndef YY_EXIT_FAILURE",
2694   "#define YY_EXIT_FAILURE 2",
2695   "#endif",
2696   "",
2697   "%if-c-only",
2698   "static void yy_fatal_error YYFARGS1(yyconst char*, msg)",
2699   "{",
2700   "    m4_dnl M4_YY_DECL_GUTS_VAR();",
2701   "	(void) fprintf( stderr, \"%s\\n\", msg );",
2702   "	exit( YY_EXIT_FAILURE );",
2703   "}",
2704   "%endif",
2705   "%if-c++-only",
2706   "void yyFlexLexer::LexerError( yyconst char msg[] )",
2707   "{",
2708   "    M4_YY_DECL_GUTS_VAR();",
2709   "	std::cerr << msg << std::endl;",
2710   "	exit( YY_EXIT_FAILURE );",
2711   "}",
2712   "%endif",
2713   "",
2714   "/* Redefine yyless() so it works in section 3 code. */",
2715   "",
2716   "#undef yyless",
2717   "#define yyless(n) \\",
2718   "	do \\",
2719   "		{ \\",
2720   "		/* Undo effects of setting up yytext. */ \\",
2721   "        int yyless_macro_arg = (n); \\",
2722   "        YY_LESS_LINENO(yyless_macro_arg);\\",
2723   "		yytext[yyleng] = YY_G(yy_hold_char); \\",
2724   "		YY_G(yy_c_buf_p) = yytext + yyless_macro_arg; \\",
2725   "		YY_G(yy_hold_char) = *YY_G(yy_c_buf_p); \\",
2726   "		*YY_G(yy_c_buf_p) = '\\0'; \\",
2727   "		yyleng = yyless_macro_arg; \\",
2728   "		} \\",
2729   "	while ( 0 )",
2730   "",
2731   "",
2732   "",
2733   "/* Accessor  methods (get/set functions) to struct members. */",
2734   "",
2735   "%if-c-only",
2736   "%if-reentrant",
2737   "m4_ifdef( [[M4_YY_NO_GET_EXTRA]],,",
2738   "[[",
2739   "/** Get the user-defined data for this scanner.",
2740   " * M4_YY_DOC_PARAM",
2741   " */",
2742   "YY_EXTRA_TYPE yyget_extra  YYFARGS0(void)",
2743   "{",
2744   "    M4_YY_DECL_GUTS_VAR();",
2745   "    return yyextra;",
2746   "}",
2747   "]])",
2748   "%endif",
2749   "",
2750   "m4_ifdef( [[M4_YY_NO_GET_LINENO]],,",
2751   "[[",
2752   "/** Get the current line number.",
2753   " * M4_YY_DOC_PARAM",
2754   " */",
2755   "int yyget_lineno  YYFARGS0(void)",
2756   "{",
2757   "    M4_YY_DECL_GUTS_VAR();",
2758   "    ",
2759   "    m4_ifdef( [[M4_YY_REENTRANT]],",
2760   "    [[",
2761   "        if (! YY_CURRENT_BUFFER)",
2762   "            return 0;",
2763   "    ]])",
2764   "    return yylineno;",
2765   "}",
2766   "]])",
2767   "",
2768   "m4_ifdef( [[M4_YY_REENTRANT]],",
2769   "[[",
2770   "m4_ifdef( [[M4_YY_NO_GET_COLUMN]],,",
2771   "[[",
2772   "/** Get the current column number.",
2773   " * M4_YY_DOC_PARAM",
2774   " */",
2775   "int yyget_column  YYFARGS0(void)",
2776   "{",
2777   "    M4_YY_DECL_GUTS_VAR();",
2778   "    ",
2779   "    m4_ifdef( [[M4_YY_REENTRANT]],",
2780   "    [[",
2781   "        if (! YY_CURRENT_BUFFER)",
2782   "            return 0;",
2783   "    ]])",
2784   "    return yycolumn;",
2785   "}",
2786   "]])",
2787   "]])",
2788   "",
2789   "m4_ifdef( [[M4_YY_NO_GET_IN]],,",
2790   "[[",
2791   "/** Get the input stream.",
2792   " * M4_YY_DOC_PARAM",
2793   " */",
2794   "FILE *yyget_in  YYFARGS0(void)",
2795   "{",
2796   "    M4_YY_DECL_GUTS_VAR();",
2797   "    return yyin;",
2798   "}",
2799   "]])",
2800   "",
2801   "m4_ifdef( [[M4_YY_NO_GET_OUT]],,",
2802   "[[",
2803   "/** Get the output stream.",
2804   " * M4_YY_DOC_PARAM",
2805   " */",
2806   "FILE *yyget_out  YYFARGS0(void)",
2807   "{",
2808   "    M4_YY_DECL_GUTS_VAR();",
2809   "    return yyout;",
2810   "}",
2811   "]])",
2812   "",
2813   "m4_ifdef( [[M4_YY_NO_GET_LENG]],,",
2814   "[[",
2815   "/** Get the length of the current token.",
2816   " * M4_YY_DOC_PARAM",
2817   " */",
2818   "yy_size_t yyget_leng  YYFARGS0(void)",
2819   "{",
2820   "    M4_YY_DECL_GUTS_VAR();",
2821   "    return yyleng;",
2822   "}",
2823   "]])",
2824   "",
2825   "/** Get the current token.",
2826   " * M4_YY_DOC_PARAM",
2827   " */",
2828   "m4_ifdef( [[M4_YY_NO_GET_TEXT]],,",
2829   "[[",
2830   "char *yyget_text  YYFARGS0(void)",
2831   "{",
2832   "    M4_YY_DECL_GUTS_VAR();",
2833   "    return yytext;",
2834   "}",
2835   "]])",
2836   "",
2837   "%if-reentrant",
2838   "m4_ifdef( [[M4_YY_NO_SET_EXTRA]],,",
2839   "[[",
2840   "/** Set the user-defined data. This data is never touched by the scanner.",
2841   " * @param user_defined The data to be associated with this scanner.",
2842   " * M4_YY_DOC_PARAM",
2843   " */",
2844   "void yyset_extra YYFARGS1( YY_EXTRA_TYPE ,user_defined)",
2845   "{",
2846   "    M4_YY_DECL_GUTS_VAR();",
2847   "    yyextra = user_defined ;",
2848   "}",
2849   "]])",
2850   "%endif",
2851   "",
2852   "m4_ifdef( [[M4_YY_NO_SET_LINENO]],,",
2853   "[[",
2854   "/** Set the current line number.",
2855   " * @param line_number",
2856   " * M4_YY_DOC_PARAM",
2857   " */",
2858   "void yyset_lineno YYFARGS1( int ,line_number)",
2859   "{",
2860   "    M4_YY_DECL_GUTS_VAR();",
2861   "",
2862   "    m4_ifdef( [[M4_YY_REENTRANT]],",
2863   "    [[",
2864   "        /* lineno is only valid if an input buffer exists. */",
2865   "        if (! YY_CURRENT_BUFFER )",
2866   "           YY_FATAL_ERROR( \"yyset_lineno called with no buffer\" );",
2867   "    ]])",
2868   "    yylineno = line_number;",
2869   "}",
2870   "]])",
2871   "",
2872   "m4_ifdef( [[M4_YY_REENTRANT]],",
2873   "[[",
2874   "m4_ifdef( [[M4_YY_NO_SET_COLUMN]],,",
2875   "[[",
2876   "/** Set the current column.",
2877   " * @param line_number",
2878   " * M4_YY_DOC_PARAM",
2879   " */",
2880   "void yyset_column YYFARGS1( int , column_no)",
2881   "{",
2882   "    M4_YY_DECL_GUTS_VAR();",
2883   "",
2884   "    m4_ifdef( [[M4_YY_REENTRANT]],",
2885   "    [[",
2886   "        /* column is only valid if an input buffer exists. */",
2887   "        if (! YY_CURRENT_BUFFER )",
2888   "           YY_FATAL_ERROR( \"yyset_column called with no buffer\" );",
2889   "    ]])",
2890   "    yycolumn = column_no;",
2891   "}",
2892   "]])",
2893   "]])",
2894   "",
2895   "",
2896   "m4_ifdef( [[M4_YY_NO_SET_IN]],,",
2897   "[[",
2898   "/** Set the input stream. This does not discard the current",
2899   " * input buffer.",
2900   " * @param in_str A readable stream.",
2901   " * M4_YY_DOC_PARAM",
2902   " * @see yy_switch_to_buffer",
2903   " */",
2904   "void yyset_in YYFARGS1( FILE * ,in_str)",
2905   "{",
2906   "    M4_YY_DECL_GUTS_VAR();",
2907   "    yyin = in_str ;",
2908   "}",
2909   "]])",
2910   "",
2911   "m4_ifdef( [[M4_YY_NO_SET_OUT]],,",
2912   "[[",
2913   "void yyset_out YYFARGS1( FILE * ,out_str)",
2914   "{",
2915   "    M4_YY_DECL_GUTS_VAR();",
2916   "    yyout = out_str ;",
2917   "}",
2918   "]])",
2919   "",
2920   "",
2921   "m4_ifdef( [[M4_YY_NO_GET_DEBUG]],,",
2922   "[[",
2923   "int yyget_debug  YYFARGS0(void)",
2924   "{",
2925   "    M4_YY_DECL_GUTS_VAR();",
2926   "    return yy_flex_debug;",
2927   "}",
2928   "]])",
2929   "",
2930   "m4_ifdef( [[M4_YY_NO_SET_DEBUG]],,",
2931   "[[",
2932   "void yyset_debug YYFARGS1( int ,bdebug)",
2933   "{",
2934   "    M4_YY_DECL_GUTS_VAR();",
2935   "    yy_flex_debug = bdebug ;",
2936   "}",
2937   "]])",
2938   "%endif",
2939   "",
2940   "%if-reentrant",
2941   "/* Accessor methods for yylval and yylloc */",
2942   "",
2943   "%if-bison-bridge",
2944   "m4_ifdef( [[M4_YY_NO_GET_LVAL]],,",
2945   "[[",
2946   "YYSTYPE * yyget_lval  YYFARGS0(void)",
2947   "{",
2948   "    M4_YY_DECL_GUTS_VAR();",
2949   "    return yylval;",
2950   "}",
2951   "]])",
2952   "",
2953   "m4_ifdef( [[M4_YY_NO_SET_LVAL]],,",
2954   "[[",
2955   "void yyset_lval YYFARGS1( YYSTYPE * ,yylval_param)",
2956   "{",
2957   "    M4_YY_DECL_GUTS_VAR();",
2958   "    yylval = yylval_param;",
2959   "}",
2960   "]])",
2961   "",
2962   "m4_ifdef( [[<M4_YY_BISON_LLOC>]],",
2963   "[[",
2964   "    m4_ifdef( [[M4_YY_NO_GET_LLOC]],,",
2965   "    [[",
2966   "YYLTYPE *yyget_lloc  YYFARGS0(void)",
2967   "{",
2968   "    M4_YY_DECL_GUTS_VAR();",
2969   "    return yylloc;",
2970   "}",
2971   "    ]])",
2972   "",
2973   "    m4_ifdef( [[M4_YY_NO_SET_LLOC]],,",
2974   "    [[",
2975   "void yyset_lloc YYFARGS1( YYLTYPE * ,yylloc_param)",
2976   "{",
2977   "    M4_YY_DECL_GUTS_VAR();",
2978   "    yylloc = yylloc_param;",
2979   "}",
2980   "    ]])",
2981   "]])",
2982   "",
2983   "%endif",
2984   "",
2985   "",
2986   "/* User-visible API */",
2987   "",
2988   "/* yylex_init is special because it creates the scanner itself, so it is",
2989   " * the ONLY reentrant function that doesn't take the scanner as the last argument.",
2990   " * That's why we explicitly handle the declaration, instead of using our macros.",
2991   " */",
2992   "m4_ifdef( [[M4_YY_NO_ANSI_FUNC_DEFS]],",
2993   "[[",
2994   "int yylex_init( ptr_yy_globals )",
2995   "    yyscan_t* ptr_yy_globals;",
2996   "]],",
2997   "[[",
2998   "int yylex_init(yyscan_t* ptr_yy_globals)",
2999   "]])",
3000   "{",
3001   "    if (ptr_yy_globals == NULL){",
3002   "        errno = EINVAL;",
3003   "        return 1;",
3004   "    }",
3005   "",
3006   "    *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), NULL );",
3007   "",
3008   "    if (*ptr_yy_globals == NULL){",
3009   "        errno = ENOMEM;",
3010   "        return 1;",
3011   "    }",
3012   "",
3013   "    /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */",
3014   "    memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));",
3015   "",
3016   "    return yy_init_globals ( *ptr_yy_globals );",
3017   "}",
3018   "",
3019   "",
3020   "/* yylex_init_extra has the same functionality as yylex_init, but follows the",
3021   " * convention of taking the scanner as the last argument. Note however, that",
3022   " * this is a *pointer* to a scanner, as it will be allocated by this call (and",
3023   " * is the reason, too, why this function also must handle its own declaration).",
3024   " * The user defined value in the first argument will be available to yyalloc in",
3025   " * the yyextra field.",
3026   " */",
3027   "m4_ifdef( [[M4_YY_NO_ANSI_FUNC_DEFS]],",
3028   "[[",
3029   "int yylex_init_extra( yy_user_defined, ptr_yy_globals )",
3030   "    YY_EXTRA_TYPE yy_user_defined;",
3031   "    yyscan_t* ptr_yy_globals;",
3032   "]],",
3033   "[[",
3034   "int yylex_init_extra( YY_EXTRA_TYPE yy_user_defined, yyscan_t* ptr_yy_globals )",
3035   "]])",
3036   "{",
3037   "    struct yyguts_t dummy_yyguts;",
3038   "",
3039   "    yyset_extra (yy_user_defined, &dummy_yyguts);",
3040   "",
3041   "    if (ptr_yy_globals == NULL){",
3042   "        errno = EINVAL;",
3043   "        return 1;",
3044   "    }",
3045   "	",
3046   "    *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts );",
3047   "	",
3048   "    if (*ptr_yy_globals == NULL){",
3049   "        errno = ENOMEM;",
3050   "        return 1;",
3051   "    }",
3052   "    ",
3053   "    /* By setting to 0xAA, we expose bugs in",
3054   "    yy_init_globals. Leave at 0x00 for releases. */",
3055   "    memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));",
3056   "    ",
3057   "    yyset_extra (yy_user_defined, *ptr_yy_globals);",
3058   "    ",
3059   "    return yy_init_globals ( *ptr_yy_globals );",
3060   "}",
3061   "",
3062   "%endif if-c-only",
3063   "",
3064   "",
3065   "%if-c-only",
3066   "static int yy_init_globals YYFARGS0(void)",
3067   "{",
3068   "    M4_YY_DECL_GUTS_VAR();",
3069   "    /* Initialization is the same as for the non-reentrant scanner.",
3070   "     * This function is called from yylex_destroy(), so don't allocate here.",
3071   "     */",
3072   "",
3073   "m4_ifdef( [[M4_YY_USE_LINENO]],",
3074   "[[",
3075   "    m4_ifdef( [[M4_YY_NOT_REENTRANT]],",
3076   "    [[",
3077   "    /* We do not touch yylineno unless the option is enabled. */",
3078   "    yylineno =  1;",
3079   "    ]])",
3080   "]])",
3081   "    YY_G(yy_buffer_stack) = 0;",
3082   "    YY_G(yy_buffer_stack_top) = 0;",
3083   "    YY_G(yy_buffer_stack_max) = 0;",
3084   "    YY_G(yy_c_buf_p) = (char *) 0;",
3085   "    YY_G(yy_init) = 0;",
3086   "    YY_G(yy_start) = 0;",
3087   "",
3088   "m4_ifdef( [[M4_YY_HAS_START_STACK_VARS]],",
3089   "[[",
3090   "    YY_G(yy_start_stack_ptr) = 0;",
3091   "    YY_G(yy_start_stack_depth) = 0;",
3092   "    YY_G(yy_start_stack) =  NULL;",
3093   "]])",
3094   "",
3095   "m4_ifdef( [[M4_YY_USES_REJECT]],",
3096   "[[",
3097   "    YY_G(yy_state_buf) = 0;",
3098   "    YY_G(yy_state_ptr) = 0;",
3099   "    YY_G(yy_full_match) = 0;",
3100   "    YY_G(yy_lp) = 0;",
3101   "]])",
3102   "",
3103   "m4_ifdef( [[M4_YY_TEXT_IS_ARRAY]],",
3104   "[[",
3105   "    YY_G(yytext_ptr) = 0;",
3106   "    YY_G(yy_more_offset) = 0;",
3107   "    YY_G(yy_prev_more_offset) = 0;",
3108   "]])",
3109   "",
3110   "/* Defined in main.c */",
3111   "#ifdef YY_STDINIT",
3112   "    yyin = stdin;",
3113   "    yyout = stdout;",
3114   "#else",
3115   "    yyin = (FILE *) 0;",
3116   "    yyout = (FILE *) 0;",
3117   "#endif",
3118   "",
3119   "    /* For future reference: Set errno on error, since we are called by",
3120   "     * yylex_init()",
3121   "     */",
3122   "    return 0;",
3123   "}",
3124   "%endif",
3125   "",
3126   "",
3127   "%if-c-only SNIP! this currently causes conflicts with the c++ scanner",
3128   "/* yylex_destroy is for both reentrant and non-reentrant scanners. */",
3129   "int yylex_destroy  YYFARGS0(void)",
3130   "{",
3131   "    M4_YY_DECL_GUTS_VAR();",
3132   "",
3133   "    /* Pop the buffer stack, destroying each element. */",
3134   "	while(YY_CURRENT_BUFFER){",
3135   "		yy_delete_buffer( YY_CURRENT_BUFFER M4_YY_CALL_LAST_ARG );",
3136   "		YY_CURRENT_BUFFER_LVALUE = NULL;",
3137   "		yypop_buffer_state(M4_YY_CALL_ONLY_ARG);",
3138   "	}",
3139   "",
3140   "	/* Destroy the stack itself. */",
3141   "	yyfree(YY_G(yy_buffer_stack) M4_YY_CALL_LAST_ARG);",
3142   "	YY_G(yy_buffer_stack) = NULL;",
3143   "",
3144   "m4_ifdef( [[M4_YY_HAS_START_STACK_VARS]],",
3145   "[[",
3146   "    /* Destroy the start condition stack. */",
3147   "        yyfree( YY_G(yy_start_stack) M4_YY_CALL_LAST_ARG );",
3148   "        YY_G(yy_start_stack) = NULL;",
3149   "]])",
3150   "",
3151   "m4_ifdef( [[M4_YY_USES_REJECT]],",
3152   "[[",
3153   "    yyfree ( YY_G(yy_state_buf) M4_YY_CALL_LAST_ARG);",
3154   "    YY_G(yy_state_buf)  = NULL;",
3155   "]])",
3156   "",
3157   "    /* Reset the globals. This is important in a non-reentrant scanner so the next time",
3158   "     * yylex() is called, initialization will occur. */",
3159   "    yy_init_globals( M4_YY_CALL_ONLY_ARG);",
3160   "",
3161   "%if-reentrant",
3162   "    /* Destroy the main struct (reentrant only). */",
3163   "    yyfree ( yyscanner M4_YY_CALL_LAST_ARG );",
3164   "    yyscanner = NULL;",
3165   "%endif",
3166   "    return 0;",
3167   "}",
3168   "%endif",
3169   "",
3170   "",
3171   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
3172   "[[",
3173   "/*",
3174   " * Internal utility routines.",
3175   " */",
3176   "]])",
3177   "",
3178   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
3179   "[[",
3180   "#ifndef yytext_ptr",
3181   "static void yy_flex_strncpy YYFARGS3( char*,s1, yyconst char *,s2, int,n)",
3182   "{",
3183   "	int i;",
3184   "	for ( i = 0; i < n; ++i )",
3185   "		s1[i] = s2[i];",
3186   "}",
3187   "#endif",
3188   "]])",
3189   "",
3190   "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],",
3191   "[[",
3192   "#ifdef YY_NEED_STRLEN",
3193   "static int yy_flex_strlen YYFARGS1( yyconst char *,s)",
3194   "{",
3195   "	int n;",
3196   "	for ( n = 0; s[n]; ++n )",
3197   "		;",
3198   "",
3199   "	return n;",
3200   "}",
3201   "#endif",
3202   "]])",
3203   "",
3204   "m4_ifdef( [[M4_YY_NO_FLEX_ALLOC]],,",
3205   "[[",
3206   "void *yyalloc YYFARGS1( yy_size_t ,size)",
3207   "{",
3208   "	return (void *) malloc( size );",
3209   "}",
3210   "]])",
3211   "",
3212   "m4_ifdef( [[M4_YY_NO_FLEX_REALLOC]],,",
3213   "[[",
3214   "void *yyrealloc  YYFARGS2( void *,ptr, yy_size_t ,size)",
3215   "{",
3216   "	/* The cast to (char *) in the following accommodates both",
3217   "	 * implementations that use char* generic pointers, and those",
3218   "	 * that use void* generic pointers.  It works with the latter",
3219   "	 * because both ANSI C and C++ allow castless assignment from",
3220   "	 * any pointer type to void*, and deal with argument conversions",
3221   "	 * as though doing an assignment.",
3222   "	 */",
3223   "	return (void *) realloc( (char *) ptr, size );",
3224   "}",
3225   "]])",
3226   "",
3227   "m4_ifdef( [[M4_YY_NO_FLEX_FREE]],,",
3228   "[[",
3229   "void yyfree YYFARGS1( void *,ptr)",
3230   "{",
3231   "	free( (char *) ptr );	/* see yyrealloc() for (char *) cast */",
3232   "}",
3233   "]])",
3234   "",
3235   "%if-tables-serialization definitions",
3236   "#ifdef FLEX_SCANNER",
3237   "/*",
3238   "dnl   tables_shared.c - tables serialization code",
3239   "dnl ",
3240   "dnl   Copyright (c) 1990 The Regents of the University of California.",
3241   "dnl   All rights reserved.",
3242   "dnl ",
3243   "dnl   This code is derived from software contributed to Berkeley by",
3244   "dnl   Vern Paxson.",
3245   "dnl ",
3246   "dnl   The United States Government has rights in this work pursuant",
3247   "dnl   to contract no. DE-AC03-76SF00098 between the United States",
3248   "dnl   Department of Energy and the University of California.",
3249   "dnl ",
3250   "dnl   This file is part of flex.",
3251   "dnl ",
3252   "dnl   Redistribution and use in source and binary forms, with or without",
3253   "dnl   modification, are permitted provided that the following conditions",
3254   "dnl   are met:",
3255   "dnl ",
3256   "dnl   1. Redistributions of source code must retain the above copyright",
3257   "dnl      notice, this list of conditions and the following disclaimer.",
3258   "dnl   2. Redistributions in binary form must reproduce the above copyright",
3259   "dnl      notice, this list of conditions and the following disclaimer in the",
3260   "dnl      documentation and/or other materials provided with the distribution.",
3261   "dnl ",
3262   "dnl   Neither the name of the University nor the names of its contributors",
3263   "dnl   may be used to endorse or promote products derived from this software",
3264   "dnl   without specific prior written permission.",
3265   "dnl ",
3266   "dnl   THIS SOFTWARE IS PROVIDED `AS IS' AND WITHOUT ANY EXPRESS OR",
3267   "dnl   IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED",
3268   "dnl   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR",
3269   "dnl   PURPOSE.",
3270   "dnl ",
3271   "*/",
3272   "",
3273   "/* This file is meant to be included in both the skeleton and the actual",
3274   " * flex code (hence the name \"_shared\"). ",
3275   " */",
3276   "#ifndef yyskel_static",
3277   "#define yyskel_static static",
3278   "#endif",
3279   "#else",
3280   "#include \"flexdef.h\"",
3281   "#include \"tables.h\"",
3282   "#ifndef yyskel_static",
3283   "#define yyskel_static",
3284   "#endif",
3285   "#endif",
3286   "",
3287   "",
3288   "/** Get the number of integers in this table. This is NOT the",
3289   " *  same thing as the number of elements.",
3290   " *  @param td the table ",
3291   " *  @return the number of integers in the table",
3292   " */",
3293   "yyskel_static flex_int32_t yytbl_calc_total_len (const struct yytbl_data *tbl)",
3294   "{",
3295   "	flex_int32_t n;",
3296   "",
3297   "	/* total number of ints */",
3298   "	n = tbl->td_lolen;",
3299   "	if (tbl->td_hilen > 0)",
3300   "		n *= tbl->td_hilen;",
3301   "",
3302   "	if (tbl->td_id == YYTD_ID_TRANSITION)",
3303   "		n *= 2;",
3304   "	return n;",
3305   "}",
3306   "",
3307   "",
3308   "static int yytbl_read8 (void *v, struct yytbl_reader * rd)",
3309   "{",
3310   "    errno = 0;",
3311   "    if (fread (v, sizeof (flex_uint8_t), 1, rd->fp) != 1){",
3312   "        errno = EIO;",
3313   "        return -1;",
3314   "    }",
3315   "    rd->bread += sizeof(flex_uint8_t);",
3316   "    return 0;",
3317   "}",
3318   "",
3319   "static int yytbl_read16 (void *v, struct yytbl_reader * rd)",
3320   "{",
3321   "    errno = 0;",
3322   "    if (fread (v, sizeof (flex_uint16_t), 1, rd->fp) != 1){",
3323   "        errno = EIO;",
3324   "        return -1;",
3325   "    }",
3326   "    *((flex_uint16_t *) v) = ntohs (*((flex_uint16_t *) v));",
3327   "    rd->bread += sizeof(flex_uint16_t);",
3328   "    return 0;",
3329   "}",
3330   "",
3331   "static int yytbl_read32 (void *v, struct yytbl_reader * rd)",
3332   "{",
3333   "    errno = 0;",
3334   "    if (fread (v, sizeof (flex_uint32_t), 1, rd->fp) != 1){",
3335   "        errno = EIO;",
3336   "        return -1;",
3337   "    }",
3338   "    *((flex_uint32_t *) v) = ntohl (*((flex_uint32_t *) v));",
3339   "    rd->bread += sizeof(flex_uint32_t);",
3340   "    return 0;",
3341   "}",
3342   "",
3343   "/** Read the header */",
3344   "static int yytbl_hdr_read YYFARGS2(struct yytbl_hdr *, th, struct yytbl_reader *, rd)",
3345   "{",
3346   "    int     bytes;",
3347   "    memset (th, 0, sizeof (struct yytbl_hdr));",
3348   "",
3349   "    if (yytbl_read32 (&(th->th_magic), rd) != 0)",
3350   "        return -1;",
3351   "",
3352   "    if (th->th_magic != YYTBL_MAGIC){",
3353   "        YY_FATAL_ERROR( \"bad magic number\" );   /* TODO: not fatal. */",
3354   "        return -1;",
3355   "    }",
3356   "",
3357   "    if (yytbl_read32 (&(th->th_hsize), rd) != 0",
3358   "        || yytbl_read32 (&(th->th_ssize), rd) != 0",
3359   "        || yytbl_read16 (&(th->th_flags), rd) != 0)",
3360   "        return -1;",
3361   "",
3362   "    /* Sanity check on header size. Greater than 1k suggests some funny business. */",
3363   "    if (th->th_hsize < 16 || th->th_hsize > 1024){",
3364   "        YY_FATAL_ERROR( \"insane header size detected\" );   /* TODO: not fatal. */",
3365   "        return -1;",
3366   "    }",
3367   "",
3368   "    /* Allocate enough space for the version and name fields */",
3369   "    bytes = th->th_hsize - 14;",
3370   "    th->th_version = (char *) yyalloc (bytes M4_YY_CALL_LAST_ARG);",
3371   "    if ( ! th->th_version )",
3372   "        YY_FATAL_ERROR( \"out of dynamic memory in yytbl_hdr_read()\" );",
3373   "",
3374   "    /* we read it all into th_version, and point th_name into that data */",
3375   "    if (fread (th->th_version, 1, bytes, rd->fp) != bytes){",
3376   "        errno = EIO;",
3377   "        yyfree(th->th_version M4_YY_CALL_LAST_ARG);",
3378   "        th->th_version = NULL;",
3379   "        return -1;",
3380   "    }",
3381   "    else",
3382   "        rd->bread += bytes;",
3383   "",
3384   "    th->th_name = th->th_version + strlen (th->th_version) + 1;",
3385   "    return 0;",
3386   "}",
3387   "",
3388   "/** lookup id in the dmap list.",
3389   " *  @param dmap pointer to first element in list",
3390   " *  @return NULL if not found.",
3391   " */",
3392   "static struct yytbl_dmap *yytbl_dmap_lookup YYFARGS2(struct yytbl_dmap *, dmap,",
3393   "                                                      int, id)",
3394   "{",
3395   "    while (dmap->dm_id)",
3396   "        if (dmap->dm_id == id)",
3397   "            return dmap;",
3398   "        else",
3399   "            dmap++;",
3400   "    return NULL;",
3401   "}",
3402   "",
3403   "/** Read a table while mapping its contents to the local array. ",
3404   " *  @param dmap used to performing mapping",
3405   " *  @return 0 on success",
3406   " */",
3407   "static int yytbl_data_load YYFARGS2(struct yytbl_dmap *, dmap, struct yytbl_reader*, rd)",
3408   "{",
3409   "    struct yytbl_data td;",
3410   "    struct yytbl_dmap *transdmap=0;",
3411   "    int     len, i, rv, inner_loop_count;",
3412   "    void   *p=0;",
3413   "",
3414   "    memset (&td, 0, sizeof (struct yytbl_data));",
3415   "",
3416   "    if (yytbl_read16 (&td.td_id, rd) != 0",
3417   "        || yytbl_read16 (&td.td_flags, rd) != 0",
3418   "        || yytbl_read32 (&td.td_hilen, rd) != 0",
3419   "        || yytbl_read32 (&td.td_lolen, rd) != 0)",
3420   "        return -1;",
3421   "",
3422   "    /* Lookup the map for the transition table so we have it in case we need it",
3423   "     * inside the loop below. This scanner might not even have a transition",
3424   "     * table, which is ok.",
3425   "     */",
3426   "    transdmap = yytbl_dmap_lookup (dmap, YYTD_ID_TRANSITION M4_YY_CALL_LAST_ARG);",
3427   "",
3428   "    if ((dmap = yytbl_dmap_lookup (dmap, td.td_id M4_YY_CALL_LAST_ARG)) == NULL){",
3429   "        YY_FATAL_ERROR( \"table id not found in map.\" );   /* TODO: not fatal. */",
3430   "        return -1;",
3431   "    }",
3432   "",
3433   "    /* Allocate space for table.",
3434   "     * The --full yy_transition table is a special case, since we",
3435   "     * need the dmap.dm_sz entry to tell us the sizeof the individual",
3436   "     * struct members.",
3437   "     */",
3438   "    {",
3439   "    size_t  bytes;",
3440   "",
3441   "    if ((td.td_flags & YYTD_STRUCT))",
3442   "        bytes = sizeof(struct yy_trans_info) * td.td_lolen * (td.td_hilen ? td.td_hilen : 1);",
3443   "    else",
3444   "        bytes = td.td_lolen * (td.td_hilen ? td.td_hilen : 1) * dmap->dm_sz;",
3445   "",
3446   "    if(M4_YY_TABLES_VERIFY)",
3447   "        /* We point to the array itself */",
3448   "        p = dmap->dm_arr; ",
3449   "    else",
3450   "        /* We point to the address of a pointer. */",
3451   "        *dmap->dm_arr = p = (void *) yyalloc (bytes M4_YY_CALL_LAST_ARG);",
3452   "        if ( ! p )",
3453   "            YY_FATAL_ERROR( \"out of dynamic memory in yytbl_data_load()\" );",
3454   "    }",
3455   "",
3456   "    /* If it's a struct, we read 2 integers to get one element */",
3457   "    if ((td.td_flags & YYTD_STRUCT) != 0)",
3458   "        inner_loop_count = 2;",
3459   "    else",
3460   "        inner_loop_count = 1;",
3461   "",
3462   "    /* read and map each element.",
3463   "     * This loop iterates once for each element of the td_data array.",
3464   "     * Notice that we increment 'i' in the inner loop.",
3465   "     */",
3466   "    len = yytbl_calc_total_len (&td);",
3467   "    for (i = 0; i < len; ){",
3468   "        int    j;",
3469   "",
3470   "",
3471   "        /* This loop really executes exactly 1 or 2 times.",
3472   "         * The second time is to handle the second member of the",
3473   "         * YYTD_STRUCT for the yy_transition array.",
3474   "         */",
3475   "        for (j = 0; j < inner_loop_count; j++, i++) {",
3476   "            flex_int32_t t32;",
3477   "",
3478   "            /* read into t32 no matter what the real size is. */",
3479   "            {",
3480   "            flex_int16_t t16;",
3481   "            flex_int8_t  t8;",
3482   "",
3483   "            switch (YYTDFLAGS2BYTES (td.td_flags)) {",
3484   "            case sizeof (flex_int32_t):",
3485   "                rv = yytbl_read32 (&t32, rd);",
3486   "                break;",
3487   "            case sizeof (flex_int16_t):",
3488   "                rv = yytbl_read16 (&t16, rd);",
3489   "                t32 = t16;",
3490   "                break;",
3491   "            case sizeof (flex_int8_t):",
3492   "                rv = yytbl_read8 (&t8, rd);",
3493   "                t32 = t8;",
3494   "                break;",
3495   "            default: ",
3496   "                YY_FATAL_ERROR( \"invalid td_flags\" );   /* TODO: not fatal. */",
3497   "                return -1;",
3498   "            }",
3499   "            }",
3500   "            if (rv != 0)",
3501   "                return -1;",
3502   "",
3503   "            /* copy into the deserialized array... */",
3504   "",
3505   "            if ((td.td_flags & YYTD_STRUCT)) {",
3506   "                /* t32 is the j'th member of a two-element struct. */",
3507   "                void   *v;",
3508   "",
3509   "                v = j == 0 ? &(((struct yy_trans_info *) p)->yy_verify)",
3510   "                    : &(((struct yy_trans_info *) p)->yy_nxt);",
3511   "",
3512   "                switch (dmap->dm_sz) {",
3513   "                case sizeof (flex_int32_t):",
3514   "                    if (M4_YY_TABLES_VERIFY){",
3515   "                        if( ((flex_int32_t *) v)[0] != (flex_int32_t) t32)",
3516   "                           YY_FATAL_ERROR( \"tables verification failed at YYTD_STRUCT flex_int32_t\" );",
3517   "                    }else",
3518   "                        ((flex_int32_t *) v)[0] = (flex_int32_t) t32;",
3519   "                    break;",
3520   "                case sizeof (flex_int16_t):",
3521   "                    if (M4_YY_TABLES_VERIFY ){",
3522   "                        if(((flex_int16_t *) v)[0] != (flex_int16_t) t32)",
3523   "                        YY_FATAL_ERROR( \"tables verification failed at YYTD_STRUCT flex_int16_t\" );",
3524   "                    }else",
3525   "                        ((flex_int16_t *) v)[0] = (flex_int16_t) t32;",
3526   "                    break;",
3527   "                case sizeof(flex_int8_t):",
3528   "                    if (M4_YY_TABLES_VERIFY ){",
3529   "                         if( ((flex_int8_t *) v)[0] != (flex_int8_t) t32)",
3530   "                        YY_FATAL_ERROR( \"tables verification failed at YYTD_STRUCT flex_int8_t\" );",
3531   "                    }else",
3532   "                        ((flex_int8_t *) v)[0] = (flex_int8_t) t32;",
3533   "                    break;",
3534   "                default:",
3535   "                    YY_FATAL_ERROR( \"invalid dmap->dm_sz for struct\" );   /* TODO: not fatal. */",
3536   "                    return -1;",
3537   "                }",
3538   "",
3539   "                /* if we're done with j, increment p */",
3540   "                if (j == 1)",
3541   "                    p = (struct yy_trans_info *) p + 1;",
3542   "            }",
3543   "            else if ((td.td_flags & YYTD_PTRANS)) {",
3544   "                /* t32 is an index into the transition array. */",
3545   "                struct yy_trans_info *v;",
3546   "",
3547   "",
3548   "                if (!transdmap){",
3549   "                    YY_FATAL_ERROR( \"transition table not found\" );   /* TODO: not fatal. */",
3550   "                    return -1;",
3551   "                }",
3552   "                ",
3553   "                if( M4_YY_TABLES_VERIFY)",
3554   "                    v = &(((struct yy_trans_info *) (transdmap->dm_arr))[t32]);",
3555   "                else",
3556   "                    v = &((*((struct yy_trans_info **) (transdmap->dm_arr)))[t32]);",
3557   "",
3558   "                if(M4_YY_TABLES_VERIFY ){",
3559   "                    if( ((struct yy_trans_info **) p)[0] != v)",
3560   "                        YY_FATAL_ERROR( \"tables verification failed at YYTD_PTRANS\" );",
3561   "                }else",
3562   "                    ((struct yy_trans_info **) p)[0] = v;",
3563   "                ",
3564   "                /* increment p */",
3565   "                p = (struct yy_trans_info **) p + 1;",
3566   "            }",
3567   "            else {",
3568   "                /* t32 is a plain int. copy data, then incrememnt p. */",
3569   "                switch (dmap->dm_sz) {",
3570   "                case sizeof (flex_int32_t):",
3571   "                    if(M4_YY_TABLES_VERIFY ){",
3572   "                        if( ((flex_int32_t *) p)[0] != (flex_int32_t) t32)",
3573   "                        YY_FATAL_ERROR( \"tables verification failed at flex_int32_t\" );",
3574   "                    }else",
3575   "                        ((flex_int32_t *) p)[0] = (flex_int32_t) t32;",
3576   "                    p = ((flex_int32_t *) p) + 1;",
3577   "                    break;",
3578   "                case sizeof (flex_int16_t):",
3579   "                    if(M4_YY_TABLES_VERIFY ){",
3580   "                        if( ((flex_int16_t *) p)[0] != (flex_int16_t) t32)",
3581   "                        YY_FATAL_ERROR( \"tables verification failed at flex_int16_t\" );",
3582   "                    }else",
3583   "                        ((flex_int16_t *) p)[0] = (flex_int16_t) t32;",
3584   "                    p = ((flex_int16_t *) p) + 1;",
3585   "                    break;",
3586   "                case sizeof (flex_int8_t):",
3587   "                    if(M4_YY_TABLES_VERIFY ){",
3588   "                        if( ((flex_int8_t *) p)[0] != (flex_int8_t) t32)",
3589   "                        YY_FATAL_ERROR( \"tables verification failed at flex_int8_t\" );",
3590   "                    }else",
3591   "                        ((flex_int8_t *) p)[0] = (flex_int8_t) t32;",
3592   "                    p = ((flex_int8_t *) p) + 1;",
3593   "                    break;",
3594   "                default:",
3595   "                    YY_FATAL_ERROR( \"invalid dmap->dm_sz for plain int\" );   /* TODO: not fatal. */",
3596   "                    return -1;",
3597   "                }",
3598   "            }",
3599   "        }",
3600   "",
3601   "    }",
3602   "",
3603   "    /* Now eat padding. */",
3604   "    {",
3605   "        int pad;",
3606   "        pad = yypad64(rd->bread);",
3607   "        while(--pad >= 0){",
3608   "            flex_int8_t t8;",
3609   "            if(yytbl_read8(&t8,rd) != 0)",
3610   "                return -1;",
3611   "        }",
3612   "    }",
3613   "",
3614   "    return 0;",
3615   "}",
3616   "",
3617   "%define-yytables   The name for this specific scanner's tables.",
3618   "",
3619   "/* Find the key and load the DFA tables from the given stream.  */",
3620   "static int yytbl_fload YYFARGS2(FILE *, fp, const char *, key)",
3621   "{",
3622   "    int rv=0;",
3623   "    struct yytbl_hdr th;",
3624   "    struct yytbl_reader rd;",
3625   "",
3626   "    rd.fp = fp;",
3627   "    th.th_version = NULL;",
3628   "",
3629   "    /* Keep trying until we find the right set of tables or end of file. */",
3630   "    while (!feof(rd.fp)) {",
3631   "        rd.bread = 0;",
3632   "        if (yytbl_hdr_read (&th, &rd M4_YY_CALL_LAST_ARG) != 0){",
3633   "            rv = -1;",
3634   "            goto return_rv;",
3635   "        }",
3636   "",
3637   "        /* A NULL key means choose the first set of tables. */",
3638   "        if (key == NULL)",
3639   "            break;",
3640   "",
3641   "        if (strcmp(th.th_name,key) != 0){",
3642   "            /* Skip ahead to next set */",
3643   "            fseek(rd.fp, th.th_ssize - th.th_hsize, SEEK_CUR);",
3644   "            yyfree(th.th_version M4_YY_CALL_LAST_ARG);",
3645   "            th.th_version = NULL;",
3646   "        }",
3647   "        else",
3648   "            break;",
3649   "    }",
3650   "",
3651   "    while (rd.bread < th.th_ssize){",
3652   "        /* Load the data tables */",
3653   "        if(yytbl_data_load (yydmap,&rd M4_YY_CALL_LAST_ARG) != 0){",
3654   "            rv = -1;",
3655   "            goto return_rv;",
3656   "        }",
3657   "    }",
3658   "",
3659   "return_rv:",
3660   "    if(th.th_version){",
3661   "        yyfree(th.th_version M4_YY_CALL_LAST_ARG);",
3662   "        th.th_version = NULL;",
3663   "    }",
3664   "",
3665   "    return rv;",
3666   "}",
3667   "",
3668   "/** Load the DFA tables for this scanner from the given stream.  */",
3669   "int yytables_fload YYFARGS1(FILE *, fp)",
3670   "{",
3671   "",
3672   "    if( yytbl_fload(fp, YYTABLES_NAME M4_YY_CALL_LAST_ARG) != 0)",
3673   "        return -1;",
3674   "    return 0;",
3675   "}",
3676   "",
3677   "/** Destroy the loaded tables, freeing memory, etc.. */",
3678   "int yytables_destroy YYFARGS0(void)",
3679   "{   ",
3680   "    struct yytbl_dmap *dmap=0;",
3681   "",
3682   "    if(!M4_YY_TABLES_VERIFY){",
3683   "        /* Walk the dmap, freeing the pointers */",
3684   "        for(dmap=yydmap; dmap->dm_id; dmap++) {",
3685   "            void * v;",
3686   "            v = dmap->dm_arr;",
3687   "            if(v && *(char**)v){",
3688   "                    yyfree(*(char**)v M4_YY_CALL_LAST_ARG);",
3689   "                    *(char**)v = NULL;",
3690   "            }",
3691   "        }",
3692   "    }",
3693   "",
3694   "    return 0;",
3695   "}",
3696   "",
3697   "/* end table serialization code definitions */",
3698   "%endif",
3699   "",
3700   "",
3701   "m4_ifdef([[M4_YY_MAIN]], [[",
3702   "int main M4_YY_PARAMS(void);",
3703   "",
3704   "int main ()",
3705   "{",
3706   "",
3707   "%if-reentrant",
3708   "    yyscan_t lexer;",
3709   "    yylex_init(&lexer);",
3710   "    yylex( lexer );",
3711   "    yylex_destroy( lexer);",
3712   "",
3713   "%endif",
3714   "%if-not-reentrant",
3715   "	yylex();",
3716   "%endif",
3717   "",
3718   "	return 0;",
3719   "}",
3720   "]])",
3721   "",
3722   "%ok-for-header",
3723   "m4_ifdef( [[M4_YY_IN_HEADER]],",
3724   "[[",
3725   "#undef YY_NEW_FILE",
3726   "#undef YY_FLUSH_BUFFER",
3727   "#undef yy_set_bol",
3728   "#undef yy_new_buffer",
3729   "#undef yy_set_interactive",
3730   "#undef YY_DO_BEFORE_ACTION",
3731   "",
3732   "#ifdef YY_DECL_IS_OURS",
3733   "#undef YY_DECL_IS_OURS",
3734   "#undef YY_DECL",
3735   "#endif",
3736   "]])",
3737   0
3738 };
3739