1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmExprLexer.h,v $
6 Date: $Date: 2007-07-27 14:55:24 $
7 Version: $Revision: 1.4 $
9 Copyright (c) 2007 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef cmExpr_yyHEADER_H
18 #define cmExpr_yyHEADER_H 1
19 #define cmExpr_yyIN_HEADER 1
25 #define YY_INT_ALIGNED short int
27 /* A lexical scanner generated by flex */
30 #define YY_FLEX_MAJOR_VERSION 2
31 #define YY_FLEX_MINOR_VERSION 5
32 #define YY_FLEX_SUBMINOR_VERSION 31
33 #if YY_FLEX_SUBMINOR_VERSION > 0
37 /* First, we deal with platform-specific or compiler-specific issues. */
39 /* begin standard C headers. */
45 /* end standard C headers. */
47 /* flex integer type definitions */
52 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
54 #if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
56 typedef int8_t flex_int8_t
;
57 typedef uint8_t flex_uint8_t
;
58 typedef int16_t flex_int16_t
;
59 typedef uint16_t flex_uint16_t
;
60 typedef int32_t flex_int32_t
;
61 typedef uint32_t flex_uint32_t
;
63 typedef signed char flex_int8_t
;
64 typedef short int flex_int16_t
;
65 typedef int flex_int32_t
;
66 typedef unsigned char flex_uint8_t
;
67 typedef unsigned short int flex_uint16_t
;
68 typedef unsigned int flex_uint32_t
;
71 /* Limits of integral types. */
73 #define INT8_MIN (-128)
76 #define INT16_MIN (-32767-1)
79 #define INT32_MIN (-2147483647-1)
82 #define INT8_MAX (127)
85 #define INT16_MAX (32767)
88 #define INT32_MAX (2147483647)
91 #define UINT8_MAX (255U)
94 #define UINT16_MAX (65535U)
97 #define UINT32_MAX (4294967295U)
100 #endif /* ! FLEXINT_H */
104 /* The "const" storage-class-modifier is valid. */
107 #else /* ! __cplusplus */
113 #endif /* __STDC__ */
114 #endif /* ! __cplusplus */
117 #define yyconst const
122 /* An opaque pointer. */
123 #ifndef YY_TYPEDEF_YY_SCANNER_T
124 #define YY_TYPEDEF_YY_SCANNER_T
125 typedef void* yyscan_t
;
128 /* For convenience, these vars (plus the bison vars far below)
129 are macros in the reentrant scanner. */
130 #define yyin yyg->yyin_r
131 #define yyout yyg->yyout_r
132 #define yyextra yyg->yyextra_r
133 #define yyleng yyg->yyleng_r
134 #define yytext yyg->yytext_r
135 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
136 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
137 #define yy_flex_debug yyg->yy_flex_debug_r
139 int cmExpr_yylex_init (yyscan_t
* scanner
);
141 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
142 #define YY_TYPEDEF_YY_BUFFER_STATE
143 typedef struct yy_buffer_state
*YY_BUFFER_STATE
;
146 /* The following is because we cannot portably get our hands on size_t
147 * (without autoconf's help, which isn't available because we want
148 * flex-generated scanners to compile on their own).
151 #ifndef YY_TYPEDEF_YY_SIZE_T
152 #define YY_TYPEDEF_YY_SIZE_T
153 typedef unsigned int yy_size_t
;
156 #ifndef YY_STRUCT_YY_BUFFER_STATE
157 #define YY_STRUCT_YY_BUFFER_STATE
158 struct yy_buffer_state
162 char *yy_ch_buf
; /* input buffer */
163 char *yy_buf_pos
; /* current position in input buffer */
165 /* Size of input buffer in bytes, not including room for EOB
168 yy_size_t yy_buf_size
;
170 /* Number of characters read into yy_ch_buf, not including EOB
175 /* Whether we "own" the buffer - i.e., we know we created it,
176 * and can realloc() it to grow it, and should free() it to
179 int yy_is_our_buffer
;
181 /* Whether this is an "interactive" input source; if so, and
182 * if we're using stdio for input, then we want to use getc()
183 * instead of fread(), to make sure we stop fetching input after
186 int yy_is_interactive
;
188 /* Whether we're considered to be at the beginning of a line.
189 * If so, '^' rules will be active on the next match, otherwise
194 int yy_bs_lineno
; /**< The line count. */
195 int yy_bs_column
; /**< The column count. */
197 /* Whether to try to fill the input buffer when we reach the
202 int yy_buffer_status
;
205 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
207 void cmExpr_yyrestart (FILE *input_file
,yyscan_t yyscanner
);
208 void cmExpr_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer
,
209 yyscan_t yyscanner
);
210 YY_BUFFER_STATE
cmExpr_yy_create_buffer (FILE *file
,int size
,
211 yyscan_t yyscanner
);
212 void cmExpr_yy_delete_buffer (YY_BUFFER_STATE b
,yyscan_t yyscanner
);
213 void cmExpr_yy_flush_buffer (YY_BUFFER_STATE b
,yyscan_t yyscanner
);
214 void cmExpr_yypush_buffer_state (YY_BUFFER_STATE new_buffer
,
215 yyscan_t yyscanner
);
216 void cmExpr_yypop_buffer_state (yyscan_t yyscanner
);
218 YY_BUFFER_STATE
cmExpr_yy_scan_buffer (char *base
,yy_size_t size
,
219 yyscan_t yyscanner
);
220 YY_BUFFER_STATE
cmExpr_yy_scan_string (yyconst
char *yy_str
,
221 yyscan_t yyscanner
);
222 YY_BUFFER_STATE
cmExpr_yy_scan_bytes (yyconst
char *bytes
,int len
,
223 yyscan_t yyscanner
);
225 void *cmExpr_yyalloc (yy_size_t
,yyscan_t yyscanner
);
226 void *cmExpr_yyrealloc (void *,yy_size_t
,yyscan_t yyscanner
);
227 void cmExpr_yyfree (void * ,yyscan_t yyscanner
);
229 /* Begin user sect3 */
231 #define cmExpr_yywrap(n) 1
232 #define YY_SKIP_YYWRAP
234 #define yytext_ptr yytext_r
236 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
241 #ifndef YY_EXTRA_TYPE
242 #define YY_EXTRA_TYPE void *
245 /* Accessor methods to globals.
246 These are made visible to non-reentrant scanners for convenience. */
248 int cmExpr_yylex_destroy (yyscan_t yyscanner
);
250 int cmExpr_yyget_debug (yyscan_t yyscanner
);
252 void cmExpr_yyset_debug (int debug_flag
,yyscan_t yyscanner
);
254 YY_EXTRA_TYPE
cmExpr_yyget_extra (yyscan_t yyscanner
);
256 void cmExpr_yyset_extra (YY_EXTRA_TYPE user_defined
,yyscan_t yyscanner
);
258 FILE *cmExpr_yyget_in (yyscan_t yyscanner
);
260 void cmExpr_yyset_in (FILE * in_str
,yyscan_t yyscanner
);
262 FILE *cmExpr_yyget_out (yyscan_t yyscanner
);
264 void cmExpr_yyset_out (FILE * out_str
,yyscan_t yyscanner
);
266 int cmExpr_yyget_leng (yyscan_t yyscanner
);
268 char *cmExpr_yyget_text (yyscan_t yyscanner
);
270 int cmExpr_yyget_lineno (yyscan_t yyscanner
);
272 void cmExpr_yyset_lineno (int line_number
,yyscan_t yyscanner
);
274 /* Macros after this point can all be overridden by user definitions in
278 #ifndef YY_SKIP_YYWRAP
280 extern "C" int cmExpr_yywrap (yyscan_t yyscanner
);
282 extern int cmExpr_yywrap (yyscan_t yyscanner
);
287 static void yy_flex_strncpy (char *,yyconst
char *,int ,yyscan_t yyscanner
);
290 #ifdef YY_NEED_STRLEN
291 static int yy_flex_strlen (yyconst
char * ,yyscan_t yyscanner
);
298 /* Amount of stuff to slurp up with each read. */
299 #ifndef YY_READ_BUF_SIZE
300 #define YY_READ_BUF_SIZE 8192
303 /* Number of entries by which start-condition stack grows. */
304 #ifndef YY_START_STACK_INCR
305 #define YY_START_STACK_INCR 25
308 /* Default declaration of generated scanner - a define so the user can
309 * easily add parameters.
312 #define YY_DECL_IS_OURS 1
314 extern int cmExpr_yylex (yyscan_t yyscanner
);
316 #define YY_DECL int cmExpr_yylex (yyscan_t yyscanner)
317 #endif /* !YY_DECL */
319 /* yy_get_previous_state - get the state just before the EOB char was
323 #undef YY_FLUSH_BUFFER
326 #undef yy_set_interactive
328 #undef YY_DO_BEFORE_ACTION
330 #ifdef YY_DECL_IS_OURS
331 #undef YY_DECL_IS_OURS
338 #undef cmExpr_yyIN_HEADER
339 #endif /* cmExpr_yyHEADER_H */