Introduce "generator expressions" to add_test()
[cmake.git] / Source / cmExprLexer.h
blobfc0681dbb2affd6bea9d6baa0812283792feb638
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmExprLexer.h,v $
5 Language: C++
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 */
29 #define FLEX_SCANNER
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
34 #define FLEX_BETA
35 #endif
37 /* First, we deal with platform-specific or compiler-specific issues. */
39 /* begin standard C headers. */
40 #include <stdio.h>
41 #include <string.h>
42 #include <errno.h>
43 #include <stdlib.h>
45 /* end standard C headers. */
47 /* flex integer type definitions */
49 #ifndef FLEXINT_H
50 #define FLEXINT_H
52 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
54 #if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
55 #include <inttypes.h>
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;
62 #else
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;
69 #endif /* ! C99 */
71 /* Limits of integral types. */
72 #ifndef INT8_MIN
73 #define INT8_MIN (-128)
74 #endif
75 #ifndef INT16_MIN
76 #define INT16_MIN (-32767-1)
77 #endif
78 #ifndef INT32_MIN
79 #define INT32_MIN (-2147483647-1)
80 #endif
81 #ifndef INT8_MAX
82 #define INT8_MAX (127)
83 #endif
84 #ifndef INT16_MAX
85 #define INT16_MAX (32767)
86 #endif
87 #ifndef INT32_MAX
88 #define INT32_MAX (2147483647)
89 #endif
90 #ifndef UINT8_MAX
91 #define UINT8_MAX (255U)
92 #endif
93 #ifndef UINT16_MAX
94 #define UINT16_MAX (65535U)
95 #endif
96 #ifndef UINT32_MAX
97 #define UINT32_MAX (4294967295U)
98 #endif
100 #endif /* ! FLEXINT_H */
102 #ifdef __cplusplus
104 /* The "const" storage-class-modifier is valid. */
105 #define YY_USE_CONST
107 #else /* ! __cplusplus */
109 #if __STDC__
111 #define YY_USE_CONST
113 #endif /* __STDC__ */
114 #endif /* ! __cplusplus */
116 #ifdef YY_USE_CONST
117 #define yyconst const
118 #else
119 #define yyconst
120 #endif
122 /* An opaque pointer. */
123 #ifndef YY_TYPEDEF_YY_SCANNER_T
124 #define YY_TYPEDEF_YY_SCANNER_T
125 typedef void* yyscan_t;
126 #endif
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;
144 #endif
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;
154 #endif
156 #ifndef YY_STRUCT_YY_BUFFER_STATE
157 #define YY_STRUCT_YY_BUFFER_STATE
158 struct yy_buffer_state
160 FILE *yy_input_file;
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
166 * characters.
168 yy_size_t yy_buf_size;
170 /* Number of characters read into yy_ch_buf, not including EOB
171 * characters.
173 int yy_n_chars;
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
177 * delete it.
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
184 * each newline.
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
190 * not.
192 int yy_at_bol;
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
198 * end of it.
200 int yy_fill_buffer;
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
237 #define INITIAL 0
239 #endif
241 #ifndef YY_EXTRA_TYPE
242 #define YY_EXTRA_TYPE void *
243 #endif
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
275 * section 1.
278 #ifndef YY_SKIP_YYWRAP
279 #ifdef __cplusplus
280 extern "C" int cmExpr_yywrap (yyscan_t yyscanner );
281 #else
282 extern int cmExpr_yywrap (yyscan_t yyscanner );
283 #endif
284 #endif
286 #ifndef yytext_ptr
287 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
288 #endif
290 #ifdef YY_NEED_STRLEN
291 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
292 #endif
294 #ifndef YY_NO_INPUT
296 #endif
298 /* Amount of stuff to slurp up with each read. */
299 #ifndef YY_READ_BUF_SIZE
300 #define YY_READ_BUF_SIZE 8192
301 #endif
303 /* Number of entries by which start-condition stack grows. */
304 #ifndef YY_START_STACK_INCR
305 #define YY_START_STACK_INCR 25
306 #endif
308 /* Default declaration of generated scanner - a define so the user can
309 * easily add parameters.
311 #ifndef YY_DECL
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
320 reached */
322 #undef YY_NEW_FILE
323 #undef YY_FLUSH_BUFFER
324 #undef yy_set_bol
325 #undef yy_new_buffer
326 #undef yy_set_interactive
327 #undef yytext_ptr
328 #undef YY_DO_BEFORE_ACTION
330 #ifdef YY_DECL_IS_OURS
331 #undef YY_DECL_IS_OURS
332 #undef YY_DECL
333 #endif
338 #undef cmExpr_yyIN_HEADER
339 #endif /* cmExpr_yyHEADER_H */