Main Page | Data Structures | Directories | File List | Data Fields | Globals

rddf_lexer.h

Go to the documentation of this file.
00001 #ifndef rddfHEADER_H
00002 #define rddfHEADER_H 1
00003 #define rddfIN_HEADER 1
00004 
00005 #line 6 "src/rddf_lexer.h"
00006 
00007 #line 8 "src/rddf_lexer.h"
00008 
00009 #define  YY_INT_ALIGNED short int
00010 
00011 /* A lexical scanner generated by flex */
00012 
00013 #define FLEX_SCANNER
00014 #define YY_FLEX_MAJOR_VERSION 2
00015 #define YY_FLEX_MINOR_VERSION 5
00016 #define YY_FLEX_SUBMINOR_VERSION 33
00017 #if YY_FLEX_SUBMINOR_VERSION > 0
00018 #define FLEX_BETA
00019 #endif
00020 
00021 /* First, we deal with  platform-specific or compiler-specific issues. */
00022 
00023 /* begin standard C headers. */
00024 #include <stdio.h>
00025 #include <string.h>
00026 #include <errno.h>
00027 #include <stdlib.h>
00028 
00029 /* end standard C headers. */
00030 
00031 /* flex integer type definitions */
00032 
00033 #ifndef FLEXINT_H
00034 #define FLEXINT_H
00035 
00036 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
00037 
00038 #if __STDC_VERSION__ >= 199901L
00039 
00040 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
00041  * if you want the limit (max/min) macros for int types. 
00042  */
00043 #ifndef __STDC_LIMIT_MACROS
00044 #define __STDC_LIMIT_MACROS 1
00045 #endif
00046 
00047 #include <inttypes.h>
00048 typedef int8_t flex_int8_t;
00049 typedef uint8_t flex_uint8_t;
00050 typedef int16_t flex_int16_t;
00051 typedef uint16_t flex_uint16_t;
00052 typedef int32_t flex_int32_t;
00053 typedef uint32_t flex_uint32_t;
00054 #else
00055 typedef signed char flex_int8_t;
00056 typedef short int flex_int16_t;
00057 typedef int flex_int32_t;
00058 typedef unsigned char flex_uint8_t; 
00059 typedef unsigned short int flex_uint16_t;
00060 typedef unsigned int flex_uint32_t;
00061 #endif /* ! C99 */
00062 
00063 /* Limits of integral types. */
00064 #ifndef INT8_MIN
00065 #define INT8_MIN               (-128)
00066 #endif
00067 #ifndef INT16_MIN
00068 #define INT16_MIN              (-32767-1)
00069 #endif
00070 #ifndef INT32_MIN
00071 #define INT32_MIN              (-2147483647-1)
00072 #endif
00073 #ifndef INT8_MAX
00074 #define INT8_MAX               (127)
00075 #endif
00076 #ifndef INT16_MAX
00077 #define INT16_MAX              (32767)
00078 #endif
00079 #ifndef INT32_MAX
00080 #define INT32_MAX              (2147483647)
00081 #endif
00082 #ifndef UINT8_MAX
00083 #define UINT8_MAX              (255U)
00084 #endif
00085 #ifndef UINT16_MAX
00086 #define UINT16_MAX             (65535U)
00087 #endif
00088 #ifndef UINT32_MAX
00089 #define UINT32_MAX             (4294967295U)
00090 #endif
00091 
00092 #endif /* ! FLEXINT_H */
00093 
00094 #ifdef __cplusplus
00095 
00096 /* The "const" storage-class-modifier is valid. */
00097 #define YY_USE_CONST
00098 
00099 #else   /* ! __cplusplus */
00100 
00101 #if __STDC__
00102 
00103 #define YY_USE_CONST
00104 
00105 #endif  /* __STDC__ */
00106 #endif  /* ! __cplusplus */
00107 
00108 #ifdef YY_USE_CONST
00109 #define yyconst const
00110 #else
00111 #define yyconst
00112 #endif
00113 
00114 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
00115 #define YY_TYPEDEF_YY_BUFFER_STATE
00116 typedef struct yy_buffer_state *YY_BUFFER_STATE;
00117 #endif
00118 
00119 extern int rddfleng;
00120 
00121 extern FILE *rddfin, *rddfout;
00122 
00123 /* The following is because we cannot portably get our hands on size_t
00124  * (without autoconf's help, which isn't available because we want
00125  * flex-generated scanners to compile on their own).
00126  */
00127 
00128 #ifndef YY_TYPEDEF_YY_SIZE_T
00129 #define YY_TYPEDEF_YY_SIZE_T
00130 typedef unsigned int yy_size_t;
00131 #endif
00132 
00133 #ifndef YY_STRUCT_YY_BUFFER_STATE
00134 #define YY_STRUCT_YY_BUFFER_STATE
00135 struct yy_buffer_state
00136     {
00137     FILE *yy_input_file;
00138 
00139     char *yy_ch_buf;        /* input buffer */
00140     char *yy_buf_pos;       /* current position in input buffer */
00141 
00142     /* Size of input buffer in bytes, not including room for EOB
00143      * characters.
00144      */
00145     yy_size_t yy_buf_size;
00146 
00147     /* Number of characters read into yy_ch_buf, not including EOB
00148      * characters.
00149      */
00150     int yy_n_chars;
00151 
00152     /* Whether we "own" the buffer - i.e., we know we created it,
00153      * and can realloc() it to grow it, and should free() it to
00154      * delete it.
00155      */
00156     int yy_is_our_buffer;
00157 
00158     /* Whether this is an "interactive" input source; if so, and
00159      * if we're using stdio for input, then we want to use getc()
00160      * instead of fread(), to make sure we stop fetching input after
00161      * each newline.
00162      */
00163     int yy_is_interactive;
00164 
00165     /* Whether we're considered to be at the beginning of a line.
00166      * If so, '^' rules will be active on the next match, otherwise
00167      * not.
00168      */
00169     int yy_at_bol;
00170 
00171     int yy_bs_lineno; 
00172     int yy_bs_column; 
00174     /* Whether to try to fill the input buffer when we reach the
00175      * end of it.
00176      */
00177     int yy_fill_buffer;
00178 
00179     int yy_buffer_status;
00180 
00181     };
00182 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
00183 
00184 void rddfrestart (FILE *input_file  );
00185 void rddf_switch_to_buffer (YY_BUFFER_STATE new_buffer  );
00186 YY_BUFFER_STATE rddf_create_buffer (FILE *file,int size  );
00187 void rddf_delete_buffer (YY_BUFFER_STATE b  );
00188 void rddf_flush_buffer (YY_BUFFER_STATE b  );
00189 void rddfpush_buffer_state (YY_BUFFER_STATE new_buffer  );
00190 void rddfpop_buffer_state (void );
00191 
00192 YY_BUFFER_STATE rddf_scan_buffer (char *base,yy_size_t size  );
00193 YY_BUFFER_STATE rddf_scan_string (yyconst char *yy_str  );
00194 YY_BUFFER_STATE rddf_scan_bytes (yyconst char *bytes,int len  );
00195 
00196 void *rddfalloc (yy_size_t  );
00197 void *rddfrealloc (void *,yy_size_t  );
00198 void rddffree (void *  );
00199 
00200 /* Begin user sect3 */
00201 
00202 extern int rddflineno;
00203 
00204 extern char *rddftext;
00205 #define yytext_ptr rddftext
00206 static yyconst flex_int16_t yy_nxt[][6] =
00207     {
00208     {
00209         0,    0,    0,    0,    0,    0
00210     },
00211 
00212     {
00213         3,    4,    5,    6,    7,    8
00214     },
00215 
00216     {
00217         3,    4,    5,    6,    7,    8
00218     },
00219 
00220     {
00221        -3,   -3,   -3,   -3,   -3,   -3
00222     },
00223 
00224     {
00225         3,    9,   -4,   -4,   -4,   -4
00226     },
00227 
00228     {
00229         3,   -5,   10,   10,   10,   -5
00230     },
00231 
00232     {
00233         3,   -6,   10,   10,   10,   -6
00234     },
00235 
00236     {
00237         3,   -7,   10,   11,   10,   -7
00238     },
00239 
00240     {
00241         3,   -8,   -8,   -8,   -8,   -8
00242     },
00243 
00244     {
00245         3,    9,   -9,   -9,   -9,   -9
00246 
00247     },
00248 
00249     {
00250         3,  -10,   10,   10,   10,  -10
00251     },
00252 
00253     {
00254         3,  -11,   10,   10,   10,  -11
00255     },
00256 
00257     } ;
00258 
00259 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
00260 #define INITIAL 0
00261 
00262 #endif
00263 
00264 #ifndef YY_NO_UNISTD_H
00265 /* Special case for "unistd.h", since it is non-ANSI. We include it way
00266  * down here because we want the user's section 1 to have been scanned first.
00267  * The user has a chance to override it with an option.
00268  */
00269 #include <unistd.h>
00270 #endif
00271 
00272 #ifndef YY_EXTRA_TYPE
00273 #define YY_EXTRA_TYPE void *
00274 #endif
00275 
00276 /* Macros after this point can all be overridden by user definitions in
00277  * section 1.
00278  */
00279 
00280 #ifndef YY_SKIP_YYWRAP
00281 #ifdef __cplusplus
00282 extern "C" int rddfwrap (void );
00283 #else
00284 extern int rddfwrap (void );
00285 #endif
00286 #endif
00287 
00288 #ifndef yytext_ptr
00289 static void yy_flex_strncpy (char *,yyconst char *,int );
00290 #endif
00291 
00292 #ifdef YY_NEED_STRLEN
00293 static int yy_flex_strlen (yyconst char * );
00294 #endif
00295 
00296 #ifndef YY_NO_INPUT
00297 
00298 #endif
00299 
00300 /* Amount of stuff to slurp up with each read. */
00301 #ifndef YY_READ_BUF_SIZE
00302 #define YY_READ_BUF_SIZE 8192
00303 #endif
00304 
00305 /* Number of entries by which start-condition stack grows. */
00306 #ifndef YY_START_STACK_INCR
00307 #define YY_START_STACK_INCR 25
00308 #endif
00309 
00310 /* Default declaration of generated scanner - a define so the user can
00311  * easily add parameters.
00312  */
00313 #ifndef YY_DECL
00314 #define YY_DECL_IS_OURS 1
00315 
00316 extern int rddflex (void);
00317 
00318 #define YY_DECL int rddflex (void)
00319 #endif /* !YY_DECL */
00320 
00321 /* yy_get_previous_state - get the state just before the EOB char was reached */
00322 
00323 #undef YY_NEW_FILE
00324 #undef YY_FLUSH_BUFFER
00325 #undef yy_set_bol
00326 #undef yy_new_buffer
00327 #undef yy_set_interactive
00328 #undef YY_DO_BEFORE_ACTION
00329 
00330 #ifdef YY_DECL_IS_OURS
00331 #undef YY_DECL_IS_OURS
00332 #undef YY_DECL
00333 #endif
00334 
00335 #line 12 "src/rddf_lexer.l"
00336 
00337 
00338 #line 339 "src/rddf_lexer.h"
00339 #undef rddfIN_HEADER
00340 #endif /* rddfHEADER_H */

Generated on Thu Sep 6 13:13:11 2007 for driver by  doxygen 1.3.9.1