Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

lex.h

Go to the documentation of this file.
00001 #ifndef LEX_H
00002 #define LEX_H
00003 
00004 /************************************************************
00005 lex.h
00006 This file can be freely modified for the generation of
00007 custom code.
00008 
00009 Copyright (c) 1999-2001 Bumble-Bee Software Ltd.
00010 ************************************************************/
00011 
00012 #include <stdio.h>
00013 #include <assert.h>
00014 
00015 /* defines */
00016 #include <yytdefs.h>
00017 
00018 /* user defines */
00019 #if defined(YYTUDEFS) || defined(YYUDEFS)
00020 #include <yytudefs.h>
00021 #endif
00022 
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026 
00027 #define YY_ALEX
00028 
00029 /* modifiers */
00030 #ifndef YYCDECL
00031 #define YYCDECL
00032 #endif
00033 #ifndef YYDCDECL
00034 #define YYDCDECL
00035 #endif
00036 #ifndef YYNEAR
00037 #define YYNEAR
00038 #endif
00039 #ifndef YYFAR
00040 #define YYFAR
00041 #endif
00042 #ifndef YYNEARFAR
00043 #define YYNEARFAR
00044 #endif
00045 #ifndef YYBASED_CODE
00046 #define YYBASED_CODE
00047 #endif
00048 
00049 /* function prototypes */
00050 #ifndef YYPROTOTYPE
00051 #if defined(__STDC__) || defined(__cplusplus)
00052 #define YYPROTOTYPE
00053 #endif
00054 #endif
00055 
00056 /* qualifiers */
00057 #ifndef YYCONST
00058 #if defined(__STDC__) || defined(__cplusplus)
00059 #define YYCONST const
00060 #else
00061 #define YYCONST
00062 #endif
00063 #endif
00064 
00065 /* testing */
00066 #ifdef YYNOPROTOTYPE
00067 #undef YYPROTOTYPE
00068 #endif
00069 #ifdef YYNOCONST
00070 #undef YYCONST
00071 #define YYCONST
00072 #endif
00073 
00074 /* yylex return values */
00075 #define YYEOF 0                 /* end of file */
00076 
00077 #ifndef YYSTATE_T
00078 #define YYSTATE_T
00079 typedef struct yystate {
00080         short def;                      /* default state */
00081         short base;                     /* base */
00082         short match;            /* action associated with state */
00083 } yystate_t;
00084 #endif
00085 
00086 #ifndef YYTRANSITION_T
00087 #define YYTRANSITION_T
00088 typedef struct yytransition {
00089         short next;                     /* next state on transition */
00090         short check;            /* check */
00091 } yytransition_t;
00092 #endif
00093 
00094 #ifndef YYCTRANSITION_T
00095 #define YYCTRANSITION_T
00096 typedef struct yyctransition {
00097         unsigned char first;    /* first character in range */
00098         unsigned char last;             /* last character in range */
00099         short next;                             /* next state on transition */
00100 } yyctransition_t;
00101 #endif
00102 
00103 typedef short yymatch_t;
00104 typedef unsigned char yybackup_t;
00105 
00106 /* general functions */
00107 #ifdef YYPROTOTYPE
00108 int YYCDECL yyclex(void);
00109 int YYCDECL yylex(void);
00110 void YYCDECL yylexcleanup(void);
00111 void YYCDECL yylexinit(void);
00112 void YYCDECL yyreset(void);
00113 int YYCDECL yysettextsize(int size);
00114 int YYCDECL yysetunputsize(int size);
00115 #else
00116 int YYCDECL yyclex();
00117 int YYCDECL yylex();
00118 void YYCDECL yylexcleanup();
00119 void YYCDECL yylexinit();
00120 void YYCDECL yyreset();
00121 int YYCDECL yysettextsize();
00122 int YYCDECL yysetunputsize();
00123 #endif
00124 
00125 /* service functions */
00126 #ifdef YYPROTOTYPE
00127 int YYCDECL yygetchar(void);
00128 int YYCDECL yyinput(void);
00129 void YYCDECL yyoutput(int ch);
00130 void YYCDECL yytextoverflow(void);
00131 void YYCDECL yyunput(int ch);
00132 void YYCDECL yyunputoverflow(void);
00133 int YYCDECL yywrap(void);
00134 #else
00135 int YYCDECL yygetchar();
00136 int YYCDECL yyinput();
00137 void YYCDECL yyoutput();
00138 void YYCDECL yytextoverflow();
00139 void YYCDECL yyunput();
00140 void YYCDECL yyunputoverflow();
00141 int YYCDECL yywrap();
00142 #endif
00143 
00144 /* action functions */
00145 #ifdef YYPROTOTYPE
00146 void YYCDECL yyecho(void);
00147 void YYCDECL yyless(int length);
00148 #else
00149 void YYCDECL yyecho();
00150 void YYCDECL yyless();
00151 #endif
00152 #define yybegin(state) (yystart = (state))
00153 #define yymore() (yymoreflg = 1)
00154 #define yynewline(newline) ((newline) ? yyeol = 1 : (yyeol = 0))
00155 #define yyreject() (yyrejectflg = 1)
00156 #define yyunputcount() yyunputindex
00157 
00158 /* compatibility */
00159 #define BEGIN yystart = 
00160 #define ECHO yyecho()
00161 #define REJECT yyreject()
00162 #define YYSTATE yystart
00163 #define YY_START yystart
00164 
00165 /* helper functions */
00166 #ifdef YYPROTOTYPE
00167 int YYCDECL yyback(YYCONST yymatch_t YYNEARFAR *p, int action);
00168 #else
00169 int YYCDECL yyback();
00170 #endif
00171 #ifndef yyassert
00172 #define yyassert(expr) assert(expr)
00173 #endif
00174 
00175 /* variables */
00176 extern unsigned char YYNEAR YYDCDECL yymoreflg;
00177 extern unsigned char YYNEAR YYDCDECL yyrejectflg;
00178 extern unsigned char YYNEAR YYDCDECL yyreturnflg;
00179 extern unsigned char YYNEAR YYDCDECL yytextgrow;
00180 extern unsigned char YYNEAR YYDCDECL yyunputgrow;
00181 extern unsigned char YYNEAR YYDCDECL yyeol;
00182 extern unsigned char YYNEAR YYDCDECL yyoldeol;
00183 extern int YYNEAR YYDCDECL yystart;
00184 
00185 extern FILE YYFAR *YYNEAR YYDCDECL yyin;
00186 extern FILE YYFAR *YYNEAR YYDCDECL yyout;
00187 extern FILE YYFAR *YYNEAR YYDCDECL yylexerr;
00188 
00189 extern int YYNEAR YYDCDECL yyleng;
00190 extern int YYNEAR YYDCDECL yylineno;
00191 extern int YYNEAR YYDCDECL yyunputindex;
00192 
00193 /* debugging functions */
00194 #ifdef YYDEBUG
00195 #ifdef YYPROTOTYPE
00196 void YYCDECL yydebugoutput(int ch);
00197 void YYCDECL yydmatch(int expr);
00198 void YYCDECL yylexdebugoutput(YYCONST char *string);
00199 #else
00200 void YYCDECL yydebugoutput();
00201 void YYCDECL yydmatch();
00202 void YYCDECL yylexdebugoutput();
00203 #endif
00204 #endif
00205 
00206 /* debugging variables */
00207 #ifdef YYDEBUG
00208 extern int YYNEAR YYDCDECL yydebug;
00209 extern int YYNEAR YYDCDECL yydebugflush;
00210 extern int YYNEAR YYDCDECL yylexdebug;
00211 extern int YYNEAR YYDCDECL yylexdebugflush;
00212 extern FILE YYFAR *YYNEAR YYDCDECL yylexdebugout;
00213 #endif
00214 
00215 /* externally defined */
00216 #ifdef YYPROTOTYPE
00217 int YYCDECL yylexaction(int action);
00218 #else
00219 int YYCDECL yylexaction();
00220 #endif
00221 
00222 extern char YYFAR *YYNEAR YYDCDECL yytext;
00223 extern char YYFAR *YYNEAR YYDCDECL yystext;
00224 extern int YYNEAR YYDCDECL yytext_size;
00225 extern int YYNEAR YYDCDECL yystext_size;
00226 
00227 extern int YYFAR *YYNEAR YYDCDECL yystatebuf;
00228 extern int YYFAR *YYNEAR YYDCDECL yysstatebuf;
00229 
00230 /* unput buffer */
00231 extern int YYFAR *YYNEAR YYDCDECL yyunputbufptr;
00232 extern int YYFAR *YYNEAR YYDCDECL yysunputbufptr;
00233 extern int YYNEAR YYDCDECL yyunput_size;
00234 extern int YYNEAR YYDCDECL yysunput_size;
00235 
00236 /* fast lexical analyser */
00237 extern YYCONST yytransition_t YYNEARFAR YYDCDECL yytransition[];
00238 extern int YYNEAR YYDCDECL yytransitionmax;
00239 
00240 /* compact lexical analyser */
00241 extern YYCONST yyctransition_t YYNEARFAR YYDCDECL yyctransition[];
00242 
00243 extern YYCONST yymatch_t YYNEARFAR YYDCDECL yymatch[];
00244 extern YYCONST yystate_t YYNEARFAR YYDCDECL yystate[];
00245 extern YYCONST yybackup_t YYNEARFAR YYDCDECL yybackup[];
00246 
00247 #ifdef __cplusplus
00248 }
00249 #endif
00250 
00251 /* user defines */
00252 #if defined(YYBUDEFS) || defined(YYUDEFS)
00253 #include <yybudefs.h>
00254 #endif
00255 
00256 /* defines */
00257 #include <yybdefs.h>
00258 
00259 #endif
00260 

Generated on Wed Mar 16 00:10:26 2005 for Dibbler - a portable DHCPv6 by  doxygen 1.3.9.1