Snoopy Version 6.0 (Albert)
scanner.h
Go to the documentation of this file.
00001 /*      
00002         This file is part of the Snoopy code.
00003 
00004     Snoopy code is free software: you can redistribute it and/or modify
00005     it under the terms of the GNU General Public License as published by
00006     the Free Software Foundation, either version 3 of the License, or
00007     (at your option) any later version.
00008 
00009     Snoopy code is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012     GNU General Public License for more details.
00013 
00014     You should have received a copy of the GNU General Public License
00015     along with Snoopy code.  If not, see <http://www.gnu.org/licenses/>.
00016 */
00017 
00018 
00019 
00020 #ifndef libconfig_yyHEADER_H
00021 #define libconfig_yyHEADER_H 1
00022 #define libconfig_yyIN_HEADER 1
00023 
00024 #line 6 "scanner.h"
00025 
00026 #line 8 "scanner.h"
00027 
00028 #define  YY_INT_ALIGNED short int
00029 
00030 /* A lexical scanner generated by flex */
00031 
00032 #define FLEX_SCANNER
00033 #define YY_FLEX_MAJOR_VERSION 2
00034 #define YY_FLEX_MINOR_VERSION 5
00035 #define YY_FLEX_SUBMINOR_VERSION 33
00036 #if YY_FLEX_SUBMINOR_VERSION > 0
00037 #define FLEX_BETA
00038 #endif
00039 
00040 /* First, we deal with  platform-specific or compiler-specific issues. */
00041 
00042 /* begin standard C headers. */
00043 #include <stdio.h>
00044 #include <string.h>
00045 #include <errno.h>
00046 #include <stdlib.h>
00047 
00048 /* end standard C headers. */
00049 
00050 /* flex integer type definitions */
00051 
00052 #ifndef FLEXINT_H
00053 #define FLEXINT_H
00054 
00055 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
00056 
00057 #if __STDC_VERSION__ >= 199901L
00058 
00059 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
00060  * if you want the limit (max/min) macros for int types. 
00061  */
00062 #ifndef __STDC_LIMIT_MACROS
00063 #define __STDC_LIMIT_MACROS 1
00064 #endif
00065 
00066 #include <inttypes.h>
00067 typedef int8_t flex_int8_t;
00068 typedef uint8_t flex_uint8_t;
00069 typedef int16_t flex_int16_t;
00070 typedef uint16_t flex_uint16_t;
00071 typedef int32_t flex_int32_t;
00072 typedef uint32_t flex_uint32_t;
00073 #else
00074 typedef signed char flex_int8_t;
00075 typedef short int flex_int16_t;
00076 typedef int flex_int32_t;
00077 typedef unsigned char flex_uint8_t; 
00078 typedef unsigned short int flex_uint16_t;
00079 typedef unsigned int flex_uint32_t;
00080 #endif /* ! C99 */
00081 
00082 /* Limits of integral types. */
00083 #ifndef INT8_MIN
00084 #define INT8_MIN               (-128)
00085 #endif
00086 #ifndef INT16_MIN
00087 #define INT16_MIN              (-32767-1)
00088 #endif
00089 #ifndef INT32_MIN
00090 #define INT32_MIN              (-2147483647-1)
00091 #endif
00092 #ifndef INT8_MAX
00093 #define INT8_MAX               (127)
00094 #endif
00095 #ifndef INT16_MAX
00096 #define INT16_MAX              (32767)
00097 #endif
00098 #ifndef INT32_MAX
00099 #define INT32_MAX              (2147483647)
00100 #endif
00101 #ifndef UINT8_MAX
00102 #define UINT8_MAX              (255U)
00103 #endif
00104 #ifndef UINT16_MAX
00105 #define UINT16_MAX             (65535U)
00106 #endif
00107 #ifndef UINT32_MAX
00108 #define UINT32_MAX             (4294967295U)
00109 #endif
00110 
00111 #endif /* ! FLEXINT_H */
00112 
00113 #ifdef __cplusplus
00114 
00115 /* The "const" storage-class-modifier is valid. */
00116 #define YY_USE_CONST
00117 
00118 #else   /* ! __cplusplus */
00119 
00120 #if __STDC__
00121 
00122 #define YY_USE_CONST
00123 
00124 #endif  /* __STDC__ */
00125 #endif  /* ! __cplusplus */
00126 
00127 #ifdef YY_USE_CONST
00128 #define yyconst const
00129 #else
00130 #define yyconst
00131 #endif
00132 
00133 /* An opaque pointer. */
00134 #ifndef YY_TYPEDEF_YY_SCANNER_T
00135 #define YY_TYPEDEF_YY_SCANNER_T
00136 typedef void* yyscan_t;
00137 #endif
00138 
00139 /* For convenience, these vars (plus the bison vars far below)
00140    are macros in the reentrant scanner. */
00141 #define yyin yyg->yyin_r
00142 #define yyout yyg->yyout_r
00143 #define yyextra yyg->yyextra_r
00144 #define yyleng yyg->yyleng_r
00145 #define yytext yyg->yytext_r
00146 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
00147 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
00148 #define yy_flex_debug yyg->yy_flex_debug_r
00149 
00150 int libconfig_yylex_init (yyscan_t* scanner);
00151 
00152 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
00153 #define YY_TYPEDEF_YY_BUFFER_STATE
00154 typedef struct yy_buffer_state *YY_BUFFER_STATE;
00155 #endif
00156 
00157 /* The following is because we cannot portably get our hands on size_t
00158  * (without autoconf's help, which isn't available because we want
00159  * flex-generated scanners to compile on their own).
00160  */
00161 
00162 #ifndef YY_TYPEDEF_YY_SIZE_T
00163 #define YY_TYPEDEF_YY_SIZE_T
00164 typedef unsigned int yy_size_t;
00165 #endif
00166 
00167 #ifndef YY_STRUCT_YY_BUFFER_STATE
00168 #define YY_STRUCT_YY_BUFFER_STATE
00169 struct yy_buffer_state
00170         {
00171         FILE *yy_input_file;
00172 
00173         char *yy_ch_buf;                /* input buffer */
00174         char *yy_buf_pos;               /* current position in input buffer */
00175 
00176         /* Size of input buffer in bytes, not including room for EOB
00177          * characters.
00178          */
00179         yy_size_t yy_buf_size;
00180 
00181         /* Number of characters read into yy_ch_buf, not including EOB
00182          * characters.
00183          */
00184         int yy_n_chars;
00185 
00186         /* Whether we "own" the buffer - i.e., we know we created it,
00187          * and can realloc() it to grow it, and should free() it to
00188          * delete it.
00189          */
00190         int yy_is_our_buffer;
00191 
00192         /* Whether this is an "interactive" input source; if so, and
00193          * if we're using stdio for input, then we want to use getc()
00194          * instead of fread(), to make sure we stop fetching input after
00195          * each newline.
00196          */
00197         int yy_is_interactive;
00198 
00199         /* Whether we're considered to be at the beginning of a line.
00200          * If so, '^' rules will be active on the next match, otherwise
00201          * not.
00202          */
00203         int yy_at_bol;
00204 
00205     int yy_bs_lineno; 
00206     int yy_bs_column; 
00208         /* Whether to try to fill the input buffer when we reach the
00209          * end of it.
00210          */
00211         int yy_fill_buffer;
00212 
00213         int yy_buffer_status;
00214 
00215         };
00216 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
00217 
00218 void libconfig_yyrestart (FILE *input_file ,yyscan_t yyscanner );
00219 void libconfig_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
00220 YY_BUFFER_STATE libconfig_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
00221 void libconfig_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
00222 void libconfig_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
00223 void libconfig_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
00224 void libconfig_yypop_buffer_state (yyscan_t yyscanner );
00225 
00226 YY_BUFFER_STATE libconfig_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
00227 YY_BUFFER_STATE libconfig_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
00228 YY_BUFFER_STATE libconfig_yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
00229 
00230 void *libconfig_yyalloc (yy_size_t ,yyscan_t yyscanner );
00231 void *libconfig_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
00232 void libconfig_yyfree (void * ,yyscan_t yyscanner );
00233 
00234 #define libconfig_yywrap(n) 1
00235 #define YY_SKIP_YYWRAP
00236 
00237 #define yytext_ptr yytext_r
00238 
00239 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
00240 #define INITIAL 0
00241 #define COMMENT 1
00242 
00243 #endif
00244 
00245 #ifndef YY_EXTRA_TYPE
00246 #define YY_EXTRA_TYPE void *
00247 #endif
00248 
00249 /* Accessor methods to globals.
00250    These are made visible to non-reentrant scanners for convenience. */
00251 
00252 int libconfig_yylex_destroy (yyscan_t yyscanner );
00253 
00254 int libconfig_yyget_debug (yyscan_t yyscanner );
00255 
00256 void libconfig_yyset_debug (int debug_flag ,yyscan_t yyscanner );
00257 
00258 YY_EXTRA_TYPE libconfig_yyget_extra (yyscan_t yyscanner );
00259 
00260 void libconfig_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
00261 
00262 FILE *libconfig_yyget_in (yyscan_t yyscanner );
00263 
00264 void libconfig_yyset_in  (FILE * in_str ,yyscan_t yyscanner );
00265 
00266 FILE *libconfig_yyget_out (yyscan_t yyscanner );
00267 
00268 void libconfig_yyset_out  (FILE * out_str ,yyscan_t yyscanner );
00269 
00270 int libconfig_yyget_leng (yyscan_t yyscanner );
00271 
00272 char *libconfig_yyget_text (yyscan_t yyscanner );
00273 
00274 int libconfig_yyget_lineno (yyscan_t yyscanner );
00275 
00276 void libconfig_yyset_lineno (int line_number ,yyscan_t yyscanner );
00277 
00278 YYSTYPE * libconfig_yyget_lval (yyscan_t yyscanner );
00279 
00280 void libconfig_yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
00281 
00282 /* Macros after this point can all be overridden by user definitions in
00283  * section 1.
00284  */
00285 
00286 #ifndef YY_SKIP_YYWRAP
00287 #ifdef __cplusplus
00288 extern "C" int libconfig_yywrap (yyscan_t yyscanner );
00289 #else
00290 extern int libconfig_yywrap (yyscan_t yyscanner );
00291 #endif
00292 #endif
00293 
00294 #ifndef yytext_ptr
00295 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
00296 #endif
00297 
00298 #ifdef YY_NEED_STRLEN
00299 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
00300 #endif
00301 
00302 #ifndef YY_NO_INPUT
00303 
00304 #endif
00305 
00306 /* Amount of stuff to slurp up with each read. */
00307 #ifndef YY_READ_BUF_SIZE
00308 #define YY_READ_BUF_SIZE 8192
00309 #endif
00310 
00311 /* Number of entries by which start-condition stack grows. */
00312 #ifndef YY_START_STACK_INCR
00313 #define YY_START_STACK_INCR 25
00314 #endif
00315 
00316 /* Default declaration of generated scanner - a define so the user can
00317  * easily add parameters.
00318  */
00319 #ifndef YY_DECL
00320 #define YY_DECL_IS_OURS 1
00321 
00322 extern int libconfig_yylex (YYSTYPE * yylval_param ,yyscan_t yyscanner);
00323 
00324 #define YY_DECL int libconfig_yylex (YYSTYPE * yylval_param , yyscan_t yyscanner)
00325 #endif /* !YY_DECL */
00326 
00327 /* yy_get_previous_state - get the state just before the EOB char was reached */
00328 
00329 #undef YY_NEW_FILE
00330 #undef YY_FLUSH_BUFFER
00331 #undef yy_set_bol
00332 #undef yy_new_buffer
00333 #undef yy_set_interactive
00334 #undef YY_DO_BEFORE_ACTION
00335 
00336 #ifdef YY_DECL_IS_OURS
00337 #undef YY_DECL_IS_OURS
00338 #undef YY_DECL
00339 #endif
00340 
00341 #line 130 "scanner.l"
00342 
00343 #line 325 "scanner.h"
00344 #undef libconfig_yyIN_HEADER
00345 #endif /* libconfig_yyHEADER_H */