]> git.cworth.org Git - ttt/blob - src/ttt-lex.h
84463a28e399cc9f5f68c11054568915ce2c4d85
[ttt] / src / ttt-lex.h
1 #ifndef yyHEADER_H
2 #define yyHEADER_H 1
3 #define yyIN_HEADER 1
4
5 #line 6 "ttt-lex.h"
6
7 #define  YY_INT_ALIGNED short int
8
9 /* A lexical scanner generated by flex */
10
11 #define FLEX_SCANNER
12 #define YY_FLEX_MAJOR_VERSION 2
13 #define YY_FLEX_MINOR_VERSION 5
14 #define YY_FLEX_SUBMINOR_VERSION 31
15 #if YY_FLEX_SUBMINOR_VERSION > 0
16 #define FLEX_BETA
17 #endif
18
19 /* First, we deal with  platform-specific or compiler-specific issues. */
20
21 /* begin standard C headers. */
22 #include <stdio.h>
23 #include <string.h>
24 #include <errno.h>
25 #include <stdlib.h>
26
27 /* end standard C headers. */
28
29 /* flex integer type definitions */
30
31 #ifndef FLEXINT_H
32 #define FLEXINT_H
33
34 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
35
36 #if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
37 #include <inttypes.h>
38 typedef int8_t flex_int8_t;
39 typedef uint8_t flex_uint8_t;
40 typedef int16_t flex_int16_t;
41 typedef uint16_t flex_uint16_t;
42 typedef int32_t flex_int32_t;
43 typedef uint32_t flex_uint32_t;
44 #else
45 typedef signed char flex_int8_t;
46 typedef short int flex_int16_t;
47 typedef int flex_int32_t;
48 typedef unsigned char flex_uint8_t; 
49 typedef unsigned short int flex_uint16_t;
50 typedef unsigned int flex_uint32_t;
51 #endif /* ! C99 */
52
53 /* Limits of integral types. */
54 #ifndef INT8_MIN
55 #define INT8_MIN               (-128)
56 #endif
57 #ifndef INT16_MIN
58 #define INT16_MIN              (-32767-1)
59 #endif
60 #ifndef INT32_MIN
61 #define INT32_MIN              (-2147483647-1)
62 #endif
63 #ifndef INT8_MAX
64 #define INT8_MAX               (127)
65 #endif
66 #ifndef INT16_MAX
67 #define INT16_MAX              (32767)
68 #endif
69 #ifndef INT32_MAX
70 #define INT32_MAX              (2147483647)
71 #endif
72 #ifndef UINT8_MAX
73 #define UINT8_MAX              (255U)
74 #endif
75 #ifndef UINT16_MAX
76 #define UINT16_MAX             (65535U)
77 #endif
78 #ifndef UINT32_MAX
79 #define UINT32_MAX             (4294967295U)
80 #endif
81
82 #endif /* ! FLEXINT_H */
83
84 #ifdef __cplusplus
85
86 /* The "const" storage-class-modifier is valid. */
87 #define YY_USE_CONST
88
89 #else   /* ! __cplusplus */
90
91 #if __STDC__
92
93 #define YY_USE_CONST
94
95 #endif  /* __STDC__ */
96 #endif  /* ! __cplusplus */
97
98 #ifdef YY_USE_CONST
99 #define yyconst const
100 #else
101 #define yyconst
102 #endif
103
104 /* An opaque pointer. */
105 #ifndef YY_TYPEDEF_YY_SCANNER_T
106 #define YY_TYPEDEF_YY_SCANNER_T
107 typedef void* yyscan_t;
108 #endif
109
110 /* For convenience, these vars (plus the bison vars far below)
111    are macros in the reentrant scanner. */
112 #define yyin yyg->yyin_r
113 #define yyout yyg->yyout_r
114 #define yyextra yyg->yyextra_r
115 #define yyleng yyg->yyleng_r
116 #define yytext yyg->yytext_r
117 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
118 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
119 #define yy_flex_debug yyg->yy_flex_debug_r
120
121 int yylex_init (yyscan_t* scanner);
122
123 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
124 #define YY_TYPEDEF_YY_BUFFER_STATE
125 typedef struct yy_buffer_state *YY_BUFFER_STATE;
126 #endif
127
128 /* The following is because we cannot portably get our hands on size_t
129  * (without autoconf's help, which isn't available because we want
130  * flex-generated scanners to compile on their own).
131  */
132
133 #ifndef YY_TYPEDEF_YY_SIZE_T
134 #define YY_TYPEDEF_YY_SIZE_T
135 typedef unsigned int yy_size_t;
136 #endif
137
138 #ifndef YY_STRUCT_YY_BUFFER_STATE
139 #define YY_STRUCT_YY_BUFFER_STATE
140 struct yy_buffer_state
141         {
142         FILE *yy_input_file;
143
144         char *yy_ch_buf;                /* input buffer */
145         char *yy_buf_pos;               /* current position in input buffer */
146
147         /* Size of input buffer in bytes, not including room for EOB
148          * characters.
149          */
150         yy_size_t yy_buf_size;
151
152         /* Number of characters read into yy_ch_buf, not including EOB
153          * characters.
154          */
155         int yy_n_chars;
156
157         /* Whether we "own" the buffer - i.e., we know we created it,
158          * and can realloc() it to grow it, and should free() it to
159          * delete it.
160          */
161         int yy_is_our_buffer;
162
163         /* Whether this is an "interactive" input source; if so, and
164          * if we're using stdio for input, then we want to use getc()
165          * instead of fread(), to make sure we stop fetching input after
166          * each newline.
167          */
168         int yy_is_interactive;
169
170         /* Whether we're considered to be at the beginning of a line.
171          * If so, '^' rules will be active on the next match, otherwise
172          * not.
173          */
174         int yy_at_bol;
175
176     int yy_bs_lineno; /**< The line count. */
177     int yy_bs_column; /**< The column count. */
178     
179         /* Whether to try to fill the input buffer when we reach the
180          * end of it.
181          */
182         int yy_fill_buffer;
183
184         int yy_buffer_status;
185
186         };
187 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
188
189 void yyrestart (FILE *input_file ,yyscan_t yyscanner );
190 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
191 YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
192 void yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
193 void yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
194 void yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
195 void yypop_buffer_state (yyscan_t yyscanner );
196
197 YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
198 YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
199 YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
200
201 void *yyalloc (yy_size_t ,yyscan_t yyscanner );
202 void *yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
203 void yyfree (void * ,yyscan_t yyscanner );
204
205 #define yytext_ptr yytext_r
206
207 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
208 #define INITIAL 0
209
210 #endif
211
212 #ifndef YY_NO_UNISTD_H
213 /* Special case for "unistd.h", since it is non-ANSI. We include it way
214  * down here because we want the user's section 1 to have been scanned first.
215  * The user has a chance to override it with an option.
216  */
217 #include <unistd.h>
218 #endif
219
220 #ifndef YY_EXTRA_TYPE
221 #define YY_EXTRA_TYPE void *
222 #endif
223
224 /* Accessor methods to globals.
225    These are made visible to non-reentrant scanners for convenience. */
226
227 int yylex_destroy (yyscan_t yyscanner );
228
229 int yyget_debug (yyscan_t yyscanner );
230
231 void yyset_debug (int debug_flag ,yyscan_t yyscanner );
232
233 YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner );
234
235 void yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
236
237 FILE *yyget_in (yyscan_t yyscanner );
238
239 void yyset_in  (FILE * in_str ,yyscan_t yyscanner );
240
241 FILE *yyget_out (yyscan_t yyscanner );
242
243 void yyset_out  (FILE * out_str ,yyscan_t yyscanner );
244
245 int yyget_leng (yyscan_t yyscanner );
246
247 char *yyget_text (yyscan_t yyscanner );
248
249 int yyget_lineno (yyscan_t yyscanner );
250
251 void yyset_lineno (int line_number ,yyscan_t yyscanner );
252
253 /* Macros after this point can all be overridden by user definitions in
254  * section 1.
255  */
256
257 #ifndef YY_SKIP_YYWRAP
258 #ifdef __cplusplus
259 extern "C" int yywrap (yyscan_t yyscanner );
260 #else
261 extern int yywrap (yyscan_t yyscanner );
262 #endif
263 #endif
264
265 #ifndef yytext_ptr
266 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
267 #endif
268
269 #ifdef YY_NEED_STRLEN
270 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
271 #endif
272
273 #ifndef YY_NO_INPUT
274
275 #endif
276
277 /* Amount of stuff to slurp up with each read. */
278 #ifndef YY_READ_BUF_SIZE
279 #define YY_READ_BUF_SIZE 8192
280 #endif
281
282 /* Number of entries by which start-condition stack grows. */
283 #ifndef YY_START_STACK_INCR
284 #define YY_START_STACK_INCR 25
285 #endif
286
287 /* Default declaration of generated scanner - a define so the user can
288  * easily add parameters.
289  */
290 #ifndef YY_DECL
291 #define YY_DECL_IS_OURS 1
292
293 extern int yylex (yyscan_t yyscanner);
294
295 #define YY_DECL int yylex (yyscan_t yyscanner)
296 #endif /* !YY_DECL */
297
298 /* yy_get_previous_state - get the state just before the EOB char was reached */
299
300 #undef YY_NEW_FILE
301 #undef YY_FLUSH_BUFFER
302 #undef yy_set_bol
303 #undef yy_new_buffer
304 #undef yy_set_interactive
305 #undef yytext_ptr
306 #undef YY_DO_BEFORE_ACTION
307
308 #ifdef YY_DECL_IS_OURS
309 #undef YY_DECL_IS_OURS
310 #undef YY_DECL
311 #endif
312 #line 15 "ttt-lex.l"
313
314 #line 317 "ttt-lex.h"
315 #undef yyIN_HEADER
316 #endif /* yyHEADER_H */