FlexLexer Class Reference

#include <FlexLexer.h>

Inheritance diagram for FlexLexer:

ExampleFlexLexer example::Scanner

List of all members.

Public Member Functions

virtual ~FlexLexer ()
const char * YYText () const
int YYLeng () const
virtual void yy_switch_to_buffer (struct yy_buffer_state *new_buffer)=0
virtual struct yy_buffer_stateyy_create_buffer (std::istream *s, int size)=0
virtual void yy_delete_buffer (struct yy_buffer_state *b)=0
virtual void yyrestart (std::istream *s)=0
virtual int yylex ()=0
int yylex (std::istream *new_in, std::ostream *new_out=0)
virtual void switch_streams (std::istream *new_in=0, std::ostream *new_out=0)=0
int lineno () const
int debug () const
void set_debug (int flag)

Protected Attributes

char * yytext
int yyleng
int yylineno
int yy_flex_debug


Detailed Description

Definition at line 61 of file FlexLexer.h.


Constructor & Destructor Documentation

virtual FlexLexer::~FlexLexer (  )  [inline, virtual]

Definition at line 63 of file FlexLexer.h.


Member Function Documentation

const char* FlexLexer::YYText (  )  const [inline]

Definition at line 65 of file FlexLexer.h.

References yytext.

int FlexLexer::YYLeng (  )  const [inline]

Definition at line 66 of file FlexLexer.h.

References yyleng.

virtual void FlexLexer::yy_switch_to_buffer ( struct yy_buffer_state new_buffer  )  [pure virtual]

Implemented in ExampleFlexLexer.

virtual struct yy_buffer_state* FlexLexer::yy_create_buffer ( std::istream *  s,
int  size 
) [read, pure virtual]

Implemented in ExampleFlexLexer.

virtual void FlexLexer::yy_delete_buffer ( struct yy_buffer_state b  )  [pure virtual]

Implemented in ExampleFlexLexer.

virtual void FlexLexer::yyrestart ( std::istream *  s  )  [pure virtual]

Implemented in ExampleFlexLexer.

virtual int FlexLexer::yylex (  )  [pure virtual]

Implemented in ExampleFlexLexer.

Referenced by yylex().

int FlexLexer::yylex ( std::istream *  new_in,
std::ostream *  new_out = 0 
) [inline]

Definition at line 78 of file FlexLexer.h.

References switch_streams(), and yylex().

virtual void FlexLexer::switch_streams ( std::istream *  new_in = 0,
std::ostream *  new_out = 0 
) [pure virtual]

Implemented in ExampleFlexLexer.

Referenced by yylex().

int FlexLexer::lineno (  )  const [inline]

Definition at line 89 of file FlexLexer.h.

References yylineno.

int FlexLexer::debug (  )  const [inline]

Definition at line 91 of file FlexLexer.h.

References yy_flex_debug.

void FlexLexer::set_debug ( int  flag  )  [inline]

Definition at line 92 of file FlexLexer.h.

References yy_flex_debug.


Member Data Documentation

char* FlexLexer::yytext [protected]

Definition at line 95 of file FlexLexer.h.

Referenced by YYText().

int FlexLexer::yyleng [protected]

Definition at line 96 of file FlexLexer.h.

Referenced by YYLeng().

int FlexLexer::yylineno [protected]

Definition at line 97 of file FlexLexer.h.

Referenced by ExampleFlexLexer::ExampleFlexLexer(), and lineno().

int FlexLexer::yy_flex_debug [protected]


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

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