The Vish Visualization Shell 0.3
Vish
yyFlexLexer Class Reference
Inheritance diagram for yyFlexLexer:
FlexLexer

Public Member Functions

struct yy_buffer_stateyy_create_buffer (FLEX_STD istream *s, int size)
 Allocate and initialize an input buffer state.
void yy_delete_buffer (struct yy_buffer_state *b)
 Destroy the buffer.
void yy_switch_to_buffer (struct yy_buffer_state *new_buffer)
 Switch to a different input buffer.
void yypop_buffer_state ()
 Removes and deletes the top of the stack, if present.
void yypush_buffer_state (struct yy_buffer_state *new_buffer)
 Pushes the new state onto the stack.
void yyrestart (FLEX_STD istream *s)
 Immediately switch to a different input stream.

Protected Member Functions

void yy_flush_buffer (struct yy_buffer_state *b)
 Discard all buffered characters.

Protected Attributes

struct yy_buffer_state ** yy_buffer_stack
 Stack as an array.
size_t yy_buffer_stack_max
 capacity of stack.
size_t yy_buffer_stack_top
 index of top of stack.

Member Function Documentation

◆ yy_create_buffer()

YY_BUFFER_STATE yyFlexLexer::yy_create_buffer ( FLEX_STD istream * s,
int size )
virtual

Allocate and initialize an input buffer state.

Parameters
fileA readable stream.
sizeThe character buffer size in bytes. When in doubt, use YY_BUF_SIZE.
Returns
the allocated buffer state.

Implements FlexLexer.

References yy_create_buffer().

Referenced by yy_create_buffer(), and yyrestart().

◆ yy_delete_buffer()

void yyFlexLexer::yy_delete_buffer ( struct yy_buffer_state * b)
virtual

Destroy the buffer.

Parameters
ba buffer created with yy_create_buffer()

Implements FlexLexer.

References yy_delete_buffer().

Referenced by yy_delete_buffer(), and yypop_buffer_state().

◆ yy_flush_buffer()

void yyFlexLexer::yy_flush_buffer ( struct yy_buffer_state * b)
protected

Discard all buffered characters.

On the next scan, YY_INPUT will be called.

Parameters
bthe buffer state to be flushed, usually YY_CURRENT_BUFFER.

References yy_flush_buffer().

Referenced by yy_flush_buffer().

◆ yy_switch_to_buffer()

void yyFlexLexer::yy_switch_to_buffer ( struct yy_buffer_state * new_buffer)
virtual

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

Implements FlexLexer.

References yy_switch_to_buffer().

Referenced by yy_switch_to_buffer().

◆ yypop_buffer_state()

void yyFlexLexer::yypop_buffer_state ( void )

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

The next element becomes the new top.

References yy_buffer_stack_top, yy_delete_buffer(), and yypop_buffer_state().

Referenced by yypop_buffer_state().

◆ yypush_buffer_state()

void yyFlexLexer::yypush_buffer_state ( struct 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_bufferThe new state.

References yy_buffer_stack_top, and yypush_buffer_state().

Referenced by yypush_buffer_state().

◆ yyrestart()

void yyFlexLexer::yyrestart ( FLEX_STD istream * s)
virtual

Immediately switch to a different input stream.

Parameters
input_fileA readable stream.
Note
This function does not reset the start condition to INITIAL .

Implements FlexLexer.

References yy_create_buffer(), and yyrestart().

Referenced by yyrestart().