Class yyFlexLexer¶
-
class
yyFlexLexer: public FlexLexer¶ Subclassed by SQLLexer, SQLLexer
Public Functions
-
yyFlexLexer(std::istream &arg_yyin, std::ostream &arg_yyout)¶
-
yyFlexLexer(std::istream *arg_yyin = 0, std::ostream *arg_yyout = 0)¶
-
~yyFlexLexer()¶
-
void
yy_switch_to_buffer(yy_buffer_state *new_buffer)¶ Switch to a different input buffer.
- Parameters
new_buffer: The new input buffer.
-
YY_BUFFER_STATE
yy_create_buffer(std::istream *s, int size)¶ Delegate creation of buffers to the new version that takes an istream reference.
- Return
the allocated buffer state.
- Parameters
file: A readable stream.size: The character buffer size in bytes. When in doubt, useYY_BUF_SIZE.
-
YY_BUFFER_STATE
yy_create_buffer(std::istream &s, int size)¶ Allocate and initialize an input buffer state.
- Return
the allocated buffer state.
- Parameters
file: A readable stream.size: The character buffer size in bytes. When in doubt, useYY_BUF_SIZE.
-
void
yy_delete_buffer(yy_buffer_state *b)¶ Destroy the buffer.
- Parameters
b: a buffer created with yy_create_buffer()
-
void
yyrestart(std::istream *s)¶ Delegate to the new version that takes an istream reference.
- Note
This function does not reset the start condition to
INITIAL.- Parameters
input_file: A readable stream.
-
void
yyrestart(std::istream &s)¶ Immediately switch to a different input stream.
- Note
This function does not reset the start condition to
INITIAL.- Parameters
input_file: A readable stream.
-
void
yypush_buffer_state(yy_buffer_state *new_buffer)¶ Pushes the new state onto the stack. The new state becomes the current state. This function will allocate the stack if necessary.
- Parameters
new_buffer: The new state.
-
void
yypop_buffer_state()¶ Removes and deletes the top of the stack, if present. The next element becomes the new top.
-
virtual int
yylex()¶
-
void
switch_streams(std::istream &new_in, std::ostream &new_out)¶
-
void
switch_streams(std::istream *new_in = 0, std::ostream *new_out = 0)¶
-
int
yywrap()¶
Protected Functions
-
int
LexerInput(char *buf, int max_size)¶
-
void
LexerOutput(const char *buf, int size)¶
-
void
LexerError(const char *msg)¶
-
void
yyunput(int c, char *buf_ptr)¶
-
int
yyinput()¶
-
void
yy_load_buffer_state()¶
-
void
yy_init_buffer(yy_buffer_state *b, std::istream &s)¶
-
void
yy_flush_buffer(yy_buffer_state *b)¶ Discard all buffered characters. On the next scan, YY_INPUT will be called.
- Parameters
b: the buffer state to be flushed, usuallyYY_CURRENT_BUFFER.
-
void
yy_push_state(int new_state)¶
-
void
yy_pop_state()¶
-
int
yy_top_state()¶
-
yy_state_type
yy_get_previous_state()¶
-
yy_state_type
yy_try_NUL_trans(yy_state_type current_state)¶
-
int
yy_get_next_buffer()¶
-
void
yyensure_buffer_stack(void)¶
Protected Attributes
-
int
yy_start_stack_ptr¶
-
int
yy_start_stack_depth¶
-
int *
yy_start_stack¶
-
std::istream
yyin¶
-
std::ostream
yyout¶
-
char
yy_hold_char¶
-
int
yy_n_chars¶
-
char *
yy_c_buf_p¶
-
int
yy_init¶
-
int
yy_start¶
-
int
yy_did_buffer_switch_on_eof¶
-
size_t
yy_buffer_stack_top¶ index of top of stack.
-
size_t
yy_buffer_stack_max¶ capacity of stack.
-
yy_buffer_state **
yy_buffer_stack¶ Stack as an array.
-
yy_state_type
yy_last_accepting_state¶
-
char *
yy_last_accepting_cpos¶
-
yy_state_type *
yy_state_buf¶
-
yy_state_type *
yy_state_ptr¶
-
char *
yy_full_match¶
-
int *
yy_full_state¶
-
int
yy_full_lp¶
-
int
yy_lp¶
-
int
yy_looking_for_trail_begin¶
-
int
yy_more_flag¶
-
int
yy_more_len¶
-
int
yy_more_offset¶
-
int
yy_prev_more_offset¶
Private Functions
-
void
ctor_common()¶
-