47 #ifndef __FLEX_LEXER_H 49 #define __FLEX_LEXER_H 53 #define FLEX_STD std:: 59 typedef int yy_state_type;
65 const char *YYText()
const {
return yytext; }
66 int YYLeng()
const {
return yyleng; }
67 virtual void yy_switch_to_buffer(
struct yy_buffer_state *new_buffer) = 0;
68 virtual struct yy_buffer_state *yy_create_buffer(FLEX_STD istream *s,
int size) = 0;
70 virtual void yyrestart(FLEX_STD istream *s) = 0;
72 virtual int yylex() = 0;
75 int yylex(FLEX_STD istream *new_in, FLEX_STD
ostream *new_out = 0)
77 switch_streams(new_in, new_out);
83 virtual void switch_streams(FLEX_STD istream *new_in = 0, FLEX_STD
ostream *new_out = 0) = 0;
85 int lineno()
const {
return yylineno; }
86 int debug()
const {
return yy_flex_debug; }
87 void set_debug(
int flag) { yy_flex_debug = flag; }
99 #if !defined(yyFlexLexerOnce) 103 #define yyFlexLexerOnce 117 struct yy_buffer_state *yy_create_buffer(FLEX_STD istream *s,
int size);
119 void yyrestart(FLEX_STD istream *s);
122 void yypop_buffer_state();
125 virtual void switch_streams(FLEX_STD istream *new_in, FLEX_STD
ostream *new_out = 0);
126 virtual int yywrap();
129 virtual size_t LexerInput(
char *buf,
size_t max_size);
130 virtual void LexerOutput(
const char *buf,
size_t size);
131 virtual void LexerError(
const char *msg);
133 void yyunput(
int c,
char *buf_ptr);
136 void yy_load_buffer_state();
140 int yy_start_stack_ptr;
141 int yy_start_stack_depth;
144 void yy_push_state(
int new_state);
148 yy_state_type yy_get_previous_state();
149 yy_state_type yy_try_NUL_trans(yy_state_type current_state);
150 int yy_get_next_buffer();
152 FLEX_STD istream *yyin;
169 int yy_did_buffer_switch_on_eof;
174 void yyensure_buffer_stack(
void);
179 yy_state_type yy_last_accepting_state;
180 char *yy_last_accepting_cpos;
182 yy_state_type *yy_state_buf;
183 yy_state_type *yy_state_ptr;
190 int yy_looking_for_trail_begin;
195 int yy_prev_more_offset;
199 #endif // yyFlexLexer || ! yyFlexLexerOnce struct yy_buffer_state ** yy_buffer_stack
Definition: FlexLexer.h:173
size_t yy_buffer_stack_top
Definition: FlexLexer.h:171
size_t yy_buffer_stack_max
Definition: FlexLexer.h:172
Definition: FlexLexer.h:61
Definition: apps/elftosb/common/options.cpp:61
Definition: elftosb_lexer.cpp:212
Definition: FlexLexer.h:107