47 #ifndef __FLEX_LEXER_H 49 #define __FLEX_LEXER_H 70 virtual void yyrestart(std::istream *s) = 0;
72 virtual int yylex() = 0;
75 int yylex(std::istream *new_in, std::ostream *new_out =
nullptr)
83 virtual void switch_streams(std::istream *new_in =
nullptr, std::ostream *new_out =
nullptr) = 0;
99 #if defined(yyFlexLexer) || !defined(yyFlexLexerOnce) 103 #define yyFlexLexerOnce 112 explicit yyFlexLexer(std::istream *arg_yyin =
nullptr, std::ostream *arg_yyout =
nullptr);
119 void yyrestart(std::istream *input_file)
override;
122 void yypop_buffer_state();
124 int yylex()
override;
125 void switch_streams(std::istream *new_in, std::ostream *new_out =
nullptr)
override;
126 virtual int yywrap();
129 virtual int LexerInput(
char *buf,
int max_size);
130 virtual void LexerOutput(
const char *buf,
int size);
131 virtual void LexerError(
const char *msg);
133 void yyunput(
int c,
char *
yy_bp);
136 void yy_load_buffer_state();
144 void yy_push_state(
int new_state);
150 int yy_get_next_buffer();
174 void yyensure_buffer_stack(
void);
199 #endif // yyFlexLexer || ! yyFlexLexerOnce int yy_flex_debug
Definition: FlexLexer.h:94
yy_state_type * yy_state_ptr
Definition: FlexLexer.h:183
int yy_n_chars
Definition: FlexLexer.h:159
yy_state_type yy_last_accepting_state
Definition: FlexLexer.h:179
yy_state_type * yy_state_buf
Definition: FlexLexer.h:182
size_t yy_buffer_stack_top
Definition: FlexLexer.h:171
#define yyFlexLexer
Definition: apr_scanner.cc:28
virtual void yy_switch_to_buffer(struct yy_buffer_state *new_buffer)=0
std::istream * yyin
Definition: FlexLexer.h:152
char yy_hold_char
Definition: FlexLexer.h:156
virtual void yyrestart(std::istream *s)=0
int yyleng
Definition: FlexLexer.h:92
char * yy_full_match
Definition: FlexLexer.h:185
int * yy_full_state
Definition: FlexLexer.h:186
int yy_more_flag
Definition: FlexLexer.h:192
int yy_start_stack_ptr
Definition: FlexLexer.h:140
size_t yy_buffer_stack_max
Definition: FlexLexer.h:172
struct yy_buffer_state ** yy_buffer_stack
Definition: FlexLexer.h:173
virtual ~FlexLexer()
Definition: FlexLexer.h:62
int yy_state_type
Definition: FlexLexer.h:55
int yylineno
Definition: FlexLexer.h:93
int yy_more_offset
Definition: FlexLexer.h:194
int * yy_start_stack
Definition: FlexLexer.h:142
int yy_prev_more_offset
Definition: FlexLexer.h:195
char * yytext
Definition: FlexLexer.h:91
FlexLexer()
Definition: FlexLexer.h:61
int yy_more_len
Definition: FlexLexer.h:193
int lineno() const
Definition: FlexLexer.h:85
Definition: apr_scanner.cc:238
int yy_did_buffer_switch_on_eof
Definition: FlexLexer.h:169
int yy_looking_for_trail_begin
Definition: FlexLexer.h:190
std::ostream * yyout
Definition: FlexLexer.h:153
int yylex(std::istream *new_in, std::ostream *new_out=nullptr)
Definition: FlexLexer.h:75
int yy_start
Definition: FlexLexer.h:165
char * yy_c_buf_p
Definition: FlexLexer.h:162
virtual struct yy_buffer_state * yy_create_buffer(std::istream *s, int size)=0
void set_debug(int flag)
Definition: FlexLexer.h:88
int yy_lp
Definition: FlexLexer.h:189
virtual void yy_delete_buffer(struct yy_buffer_state *b)=0
const char * YYText() const
Definition: FlexLexer.h:64
char * yy_last_accepting_cpos
Definition: FlexLexer.h:180
int YYLeng() const
Definition: FlexLexer.h:65
int yy_init
Definition: FlexLexer.h:164
int yy_full_lp
Definition: FlexLexer.h:187
int debug() const
Definition: FlexLexer.h:87
int yy_start_stack_depth
Definition: FlexLexer.h:141
Definition: FlexLexer.h:58
virtual void switch_streams(std::istream *new_in=nullptr, std::ostream *new_out=nullptr)=0
char * yy_bp
Definition: apr_scanner.cc:1235