Vcsn  2.8
Be Rational
FlexLexer Class Referenceabstract

#include <flex-lexer.hh>

Inheritance diagram for FlexLexer:
Collaboration diagram for FlexLexer:

Public Member Functions

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

Protected Attributes

charyytext
 
int yyleng
 
int yylineno
 
int yy_flex_debug
 

Detailed Description

Definition at line 60 of file flex-lexer.hh.

Constructor & Destructor Documentation

◆ ~FlexLexer()

virtual FlexLexer::~FlexLexer ( )
inlinevirtual

Definition at line 63 of file flex-lexer.hh.

Member Function Documentation

◆ debug()

int FlexLexer::debug ( ) const
inline

Definition at line 85 of file flex-lexer.hh.

References yy_flex_debug.

◆ lineno()

int FlexLexer::lineno ( ) const
inline

Definition at line 83 of file flex-lexer.hh.

References yylineno.

◆ set_debug()

void FlexLexer::set_debug ( int  flag)
inline

Definition at line 86 of file flex-lexer.hh.

References yy_flex_debug.

Referenced by yyFlexLexer::scan_open_().

◆ switch_streams()

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

Implemented in yyFlexLexer.

Referenced by YYLeng().

◆ yy_create_buffer()

virtual yy_buffer_state* FlexLexer::yy_create_buffer ( std::istream *  s,
int  size 
)
pure virtual

Implemented in yyFlexLexer.

Referenced by YYLeng().

◆ yy_delete_buffer()

virtual void FlexLexer::yy_delete_buffer ( yy_buffer_state b)
pure virtual

Implemented in yyFlexLexer.

Referenced by YYLeng().

◆ yy_switch_to_buffer()

virtual void FlexLexer::yy_switch_to_buffer ( yy_buffer_state new_buffer)
pure virtual

Implemented in yyFlexLexer.

Referenced by YYLeng().

◆ YYLeng()

int FlexLexer::YYLeng ( ) const
inline

Definition at line 66 of file flex-lexer.hh.

References vcsn::rat::size(), switch_streams(), yy_create_buffer(), yy_delete_buffer(), yy_switch_to_buffer(), yyleng, and yyrestart().

Here is the call graph for this function:

◆ yyrestart()

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

Implemented in yyFlexLexer.

Referenced by YYLeng().

◆ YYText()

const char* FlexLexer::YYText ( ) const
inline

Definition at line 65 of file flex-lexer.hh.

References yytext.

Member Data Documentation

◆ yy_flex_debug

int FlexLexer::yy_flex_debug
protected

Definition at line 92 of file flex-lexer.hh.

Referenced by yyFlexLexer::ctor_common(), debug(), and set_debug().

◆ yyleng

int FlexLexer::yyleng
protected

Definition at line 90 of file flex-lexer.hh.

Referenced by YYLeng().

◆ yylineno

int FlexLexer::yylineno
protected

Definition at line 91 of file flex-lexer.hh.

Referenced by yyFlexLexer::ctor_common(), and lineno().

◆ yytext

char* FlexLexer::yytext
protected

Definition at line 89 of file flex-lexer.hh.

Referenced by YYText().


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