ExampleFlexLexer Class Reference

#include <FlexLexer.h>

Inheritance diagram for ExampleFlexLexer:

FlexLexer example::Scanner

List of all members.

Public Member Functions

 ExampleFlexLexer (std::istream *arg_yyin=0, std::ostream *arg_yyout=0)
virtual ~ExampleFlexLexer ()
void yy_switch_to_buffer (struct yy_buffer_state *new_buffer)
struct yy_buffer_stateyy_create_buffer (std::istream *s, int size)
 Allocate and initialize an input buffer state.
void yy_delete_buffer (struct yy_buffer_state *b)
void yyrestart (std::istream *s)
 Immediately switch to a different input stream.
void yypush_buffer_state (struct yy_buffer_state *new_buffer)
void yypop_buffer_state ()
 Removes and deletes the top of the stack, if present.
virtual int yylex ()
 The main scanner function which does all the work.
virtual void switch_streams (std::istream *new_in, std::ostream *new_out)
virtual int yywrap ()

Protected Member Functions

virtual int LexerInput (char *buf, int max_size)
virtual void LexerOutput (const char *buf, int size)
virtual void LexerError (const char *msg)
void yyunput (int c, char *buf_ptr)
int yyinput ()
void yy_load_buffer_state ()
void yy_init_buffer (struct yy_buffer_state *b, std::istream *s)
void yy_flush_buffer (struct yy_buffer_state *b)
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.
struct yy_buffer_state ** yy_buffer_stack
 Stack as an array.
yy_state_type yy_last_accepting_state
char * yy_last_accepting_cpos
yy_state_typeyy_state_buf
yy_state_typeyy_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


Detailed Description

Definition at line 112 of file FlexLexer.h.


Constructor & Destructor Documentation

ExampleFlexLexer::ExampleFlexLexer ( std::istream *  arg_yyin = 0,
std::ostream *  arg_yyout = 0 
)

ExampleFlexLexer::~ExampleFlexLexer (  )  [virtual]


Member Function Documentation

void ExampleFlexLexer::yy_switch_to_buffer ( struct yy_buffer_state new_buffer  )  [virtual]

Implements FlexLexer.

Referenced by switch_streams().

YY_BUFFER_STATE ExampleFlexLexer::yy_create_buffer ( std::istream *  file,
int  size 
) [read, virtual]

Allocate and initialize an input buffer state.

Parameters:
file A readable stream.
size The character buffer size in bytes. When in doubt, use YY_BUF_SIZE.
Returns:
the allocated buffer state.

Implements FlexLexer.

Definition at line 1491 of file scanner.cc.

References Examplealloc(), yy_buffer_state::yy_buf_size, yy_buffer_state::yy_ch_buf, YY_FATAL_ERROR, yy_init_buffer(), and yy_buffer_state::yy_is_our_buffer.

Referenced by switch_streams(), and yyrestart().

void ExampleFlexLexer::yy_delete_buffer ( struct yy_buffer_state b  )  [virtual]

void ExampleFlexLexer::yyrestart ( std::istream *  input_file  )  [virtual]

Immediately switch to a different input stream.

Parameters:
input_file A readable stream.
Note:
This function does not reset the start condition to INITIAL .

Implements FlexLexer.

Definition at line 1417 of file scanner.cc.

References YY_BUF_SIZE, yy_create_buffer(), YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_init_buffer(), yy_load_buffer_state(), yyensure_buffer_stack(), and yyin.

Referenced by yy_get_next_buffer(), and yyinput().

void ExampleFlexLexer::yypush_buffer_state ( struct yy_buffer_state new_buffer  ) 

void ExampleFlexLexer::yypop_buffer_state ( void   ) 

Removes and deletes the top of the stack, if present.

The next element becomes the new top.

Definition at line 1660 of file scanner.cc.

References yy_buffer_stack_top, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer(), yy_did_buffer_switch_on_eof, and yy_load_buffer_state().

int ExampleFlexLexer::yylex (  )  [virtual]

void ExampleFlexLexer::switch_streams ( std::istream *  new_in,
std::ostream *  new_out 
) [virtual]

virtual int ExampleFlexLexer::yywrap (  )  [virtual]

Referenced by yyinput().

int ExampleFlexLexer::LexerInput ( char *  buf,
int  max_size 
) [protected, virtual]

Definition at line 1049 of file scanner.cc.

References yyin.

void ExampleFlexLexer::LexerOutput ( const char *  buf,
int  size 
) [protected, virtual]

Definition at line 1076 of file scanner.cc.

References yyout.

virtual void ExampleFlexLexer::LexerError ( const char *  msg  )  [protected, virtual]

void ExampleFlexLexer::yyunput ( int  c,
char *  buf_ptr 
) [protected]

int ExampleFlexLexer::yyinput (  )  [protected]

void ExampleFlexLexer::yy_load_buffer_state (  )  [protected]

Definition at line 1473 of file scanner.cc.

References yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, yy_hold_char, yy_n_chars, yyin, and yytext_ptr.

Referenced by yypop_buffer_state(), and yyrestart().

void ExampleFlexLexer::yy_init_buffer ( struct yy_buffer_state b,
std::istream *  s 
) [protected]

Referenced by yy_create_buffer(), and yyrestart().

void ExampleFlexLexer::yy_flush_buffer ( struct yy_buffer_state b  )  [protected]

void ExampleFlexLexer::yy_push_state ( int  new_state  )  [protected]

void ExampleFlexLexer::yy_pop_state (  )  [protected]

Definition at line 1767 of file scanner.cc.

References BEGIN, YY_FATAL_ERROR, yy_start_stack, and yy_start_stack_ptr.

int ExampleFlexLexer::yy_top_state (  )  [protected]

Definition at line 1779 of file scanner.cc.

References yy_start_stack, and yy_start_stack_ptr.

yy_state_type ExampleFlexLexer::yy_get_previous_state (  )  [protected]

yy_state_type ExampleFlexLexer::yy_try_NUL_trans ( yy_state_type  current_state  )  [protected]

int ExampleFlexLexer::yy_get_next_buffer (  )  [protected]

void ExampleFlexLexer::yyensure_buffer_stack ( void   )  [protected]

Definition at line 1685 of file scanner.cc.

References Examplealloc(), Examplerealloc(), yy_buffer_stack, yy_buffer_stack_max, and yy_buffer_stack_top.

Referenced by yyrestart().


Member Data Documentation

Definition at line 153 of file FlexLexer.h.

Referenced by ExampleFlexLexer(), yy_pop_state(), yy_push_state(), and yy_top_state().

Definition at line 154 of file FlexLexer.h.

Referenced by ExampleFlexLexer(), and yy_push_state().

std:: istream* ExampleFlexLexer::yyin [protected]

std:: ostream* ExampleFlexLexer::yyout [protected]

Definition at line 166 of file FlexLexer.h.

Referenced by ExampleFlexLexer(), LexerOutput(), and switch_streams().

Definition at line 169 of file FlexLexer.h.

Referenced by yy_load_buffer_state(), and yyinput().

Definition at line 172 of file FlexLexer.h.

Referenced by yy_get_next_buffer(), yy_load_buffer_state(), and yyinput().

char* ExampleFlexLexer::yy_c_buf_p [protected]

int ExampleFlexLexer::yy_init [protected]

Definition at line 177 of file FlexLexer.h.

Referenced by ExampleFlexLexer().

int ExampleFlexLexer::yy_start [protected]

Definition at line 178 of file FlexLexer.h.

Referenced by ExampleFlexLexer(), and yy_get_previous_state().

Definition at line 182 of file FlexLexer.h.

Referenced by ExampleFlexLexer(), yyinput(), and yypop_buffer_state().

index of top of stack.

Definition at line 185 of file FlexLexer.h.

Referenced by ExampleFlexLexer(), yyensure_buffer_stack(), and yypop_buffer_state().

capacity of stack.

Definition at line 186 of file FlexLexer.h.

Referenced by ExampleFlexLexer(), and yyensure_buffer_stack().

Stack as an array.

Definition at line 187 of file FlexLexer.h.

Referenced by ExampleFlexLexer(), and yyensure_buffer_stack().

Definition at line 193 of file FlexLexer.h.

Referenced by yy_get_previous_state(), and yy_try_NUL_trans().

Definition at line 194 of file FlexLexer.h.

Referenced by yy_get_previous_state(), and yy_try_NUL_trans().

Definition at line 196 of file FlexLexer.h.

Referenced by ExampleFlexLexer(), and ~ExampleFlexLexer().

Definition at line 197 of file FlexLexer.h.

Definition at line 199 of file FlexLexer.h.

Definition at line 200 of file FlexLexer.h.

Definition at line 201 of file FlexLexer.h.

int ExampleFlexLexer::yy_lp [protected]

Definition at line 203 of file FlexLexer.h.

Definition at line 204 of file FlexLexer.h.

Referenced by ExampleFlexLexer().

Definition at line 206 of file FlexLexer.h.

Referenced by ExampleFlexLexer().

Definition at line 207 of file FlexLexer.h.

Referenced by ExampleFlexLexer().

Definition at line 208 of file FlexLexer.h.

Referenced by ExampleFlexLexer().

Definition at line 209 of file FlexLexer.h.

Referenced by ExampleFlexLexer().


The documentation for this class was generated from the following files:

Generated on Sun Aug 3 12:34:09 2008 for Flex Bison C++ Example by  doxygen 1.5.5