File indexing completed on 2026-06-22 08:29:41
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047 #ifndef __FLEX_LEXER_H
0048
0049 #define __FLEX_LEXER_H
0050
0051 #include <iostream>
0052
0053 extern "C++"
0054 {
0055
0056 struct yy_buffer_state;
0057 typedef int yy_state_type;
0058
0059 class FlexLexer
0060 {
0061 public:
0062 virtual ~FlexLexer() {}
0063
0064 const char* YYText() const { return yytext; }
0065
0066 int YYLeng() const { return yyleng; }
0067
0068 virtual void yy_switch_to_buffer(yy_buffer_state* new_buffer) = 0;
0069 virtual yy_buffer_state* yy_create_buffer(std::istream* s, int size) = 0;
0070 virtual yy_buffer_state* yy_create_buffer(std::istream& s, int size) = 0;
0071 virtual void yy_delete_buffer(yy_buffer_state* b) = 0;
0072 virtual void yyrestart(std::istream* s) = 0;
0073 virtual void yyrestart(std::istream& s) = 0;
0074
0075 virtual int yylex() = 0;
0076
0077
0078 int yylex(std::istream& new_in, std::ostream& new_out)
0079 {
0080 switch_streams(new_in, new_out);
0081 return yylex();
0082 }
0083
0084 int yylex(std::istream* new_in, std::ostream* new_out = 0)
0085 {
0086 switch_streams(new_in, new_out);
0087 return yylex();
0088 }
0089
0090
0091
0092 virtual void switch_streams(std::istream* new_in, std::ostream* new_out) = 0;
0093 virtual void switch_streams(std::istream& new_in, std::ostream& new_out) = 0;
0094
0095 int lineno() const { return yylineno; }
0096
0097 int debug() const { return yy_flex_debug; }
0098
0099 void set_debug(int flag) { yy_flex_debug = flag; }
0100
0101 protected:
0102 char* yytext;
0103 int yyleng;
0104 int yylineno;
0105 int yy_flex_debug;
0106 };
0107 }
0108 #endif
0109
0110 #if defined(yyFlexLexer) || !defined(yyFlexLexerOnce)
0111
0112
0113
0114 #define yyFlexLexerOnce
0115
0116 extern "C++"
0117 {
0118
0119 class yyFlexLexer : public FlexLexer
0120 {
0121 public:
0122
0123
0124 yyFlexLexer(std::istream& arg_yyin, std::ostream& arg_yyout);
0125 yyFlexLexer(std::istream* arg_yyin = 0, std::ostream* arg_yyout = 0);
0126
0127 private:
0128 void ctor_common();
0129
0130 public:
0131 virtual ~yyFlexLexer();
0132
0133 void yy_switch_to_buffer(yy_buffer_state* new_buffer);
0134 yy_buffer_state* yy_create_buffer(std::istream* s, int size);
0135 yy_buffer_state* yy_create_buffer(std::istream& s, int size);
0136 void yy_delete_buffer(yy_buffer_state* b);
0137 void yyrestart(std::istream* s);
0138 void yyrestart(std::istream& s);
0139
0140 void yypush_buffer_state(yy_buffer_state* new_buffer);
0141 void yypop_buffer_state();
0142
0143 virtual int yylex();
0144 virtual void switch_streams(std::istream& new_in, std::ostream& new_out);
0145 virtual void switch_streams(std::istream* new_in = 0, std::ostream* new_out = 0);
0146 virtual int yywrap();
0147
0148 protected:
0149 virtual int LexerInput(char* buf, int max_size);
0150 virtual void LexerOutput(const char* buf, int size);
0151 virtual void LexerError(const char* msg);
0152
0153 void yyunput(int c, char* buf_ptr);
0154 int yyinput();
0155
0156 void yy_load_buffer_state();
0157 void yy_init_buffer(yy_buffer_state* b, std::istream& s);
0158 void yy_flush_buffer(yy_buffer_state* b);
0159
0160 int yy_start_stack_ptr;
0161 int yy_start_stack_depth;
0162 int* yy_start_stack;
0163
0164 void yy_push_state(int new_state);
0165 void yy_pop_state();
0166 int yy_top_state();
0167
0168 yy_state_type yy_get_previous_state();
0169 yy_state_type yy_try_NUL_trans(yy_state_type current_state);
0170 int yy_get_next_buffer();
0171
0172 std::istream yyin;
0173 std::ostream yyout;
0174
0175
0176 char yy_hold_char;
0177
0178
0179 int yy_n_chars;
0180
0181
0182 char* yy_c_buf_p;
0183
0184 int yy_init;
0185 int yy_start;
0186
0187
0188
0189 int yy_did_buffer_switch_on_eof;
0190
0191 size_t yy_buffer_stack_top;
0192 size_t yy_buffer_stack_max;
0193 yy_buffer_state** yy_buffer_stack;
0194 void yyensure_buffer_stack(void);
0195
0196
0197
0198
0199 yy_state_type yy_last_accepting_state;
0200 char* yy_last_accepting_cpos;
0201
0202 yy_state_type* yy_state_buf;
0203 yy_state_type* yy_state_ptr;
0204
0205 char* yy_full_match;
0206 int* yy_full_state;
0207 int yy_full_lp;
0208
0209 int yy_lp;
0210 int yy_looking_for_trail_begin;
0211
0212 int yy_more_flag;
0213 int yy_more_len;
0214 int yy_more_offset;
0215 int yy_prev_more_offset;
0216 };
0217 }
0218
0219 #endif