Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Lex::TokenFifo Class Reference

Collaboration diagram for Lex::TokenFifo:

Collaboration graph
[legend]
List of all members.

Public Methods

 TokenFifo (Lex *)
 ~TokenFifo ()
void Clear ()
void Push (int, char *, int)
int Pop (char *&, int &)
int Peek (int)
int Peek (int, char *&, int &)

Private Methods

int Peek2 (int)

Private Attributes

Lexlex
int head
int tail
int size
Lex::TokenFifo::Slotring

Constructor & Destructor Documentation

Lex::TokenFifo::TokenFifo Lex  
 

Definition at line 239 of file token.cc.

References head, lex, ring, size, and tail.

Lex::TokenFifo::~TokenFifo  
 

Definition at line 247 of file token.cc.


Member Function Documentation

void Lex::TokenFifo::Clear  
 

Definition at line 252 of file token.cc.

References head, and tail.

Referenced by Lex::Restore().

int Lex::TokenFifo::Peek int   ,
char *&   ,
int &   
 

Definition at line 296 of file token.cc.

References Lex::TokenFifo::Slot::len, Peek2(), Lex::TokenFifo::Slot::pos, ring, and Lex::TokenFifo::Slot::token.

int Lex::TokenFifo::Peek int   
 

Definition at line 291 of file token.cc.

References Peek2(), and ring.

Referenced by Lex::LookAhead(), and Lex::Save().

int Lex::TokenFifo::Peek2 int    [private]
 

Definition at line 304 of file token.cc.

References head, lex, Push(), Lex::ReadToken(), size, and tail.

Referenced by Peek().

int Lex::TokenFifo::Pop char *&   ,
int &   
 

Definition at line 279 of file token.cc.

References head, lex, Lex::ReadToken(), ring, size, and tail.

Referenced by Lex::GetToken().

void Lex::TokenFifo::Push int   ,
char *   ,
int   
 

Definition at line 257 of file token.cc.

References head, ring, size, tail, and token.

Referenced by Peek2().


Member Data Documentation

int Lex::TokenFifo::head [private]
 

Definition at line 92 of file token.h.

Referenced by Clear(), Peek2(), Pop(), Push(), and TokenFifo().

Lex* Lex::TokenFifo::lex [private]
 

Definition at line 91 of file token.h.

Referenced by Peek2(), Pop(), and TokenFifo().

struct Lex::TokenFifo::Slot* Lex::TokenFifo::ring [private]
 

Referenced by Peek(), Pop(), Push(), and TokenFifo().

int Lex::TokenFifo::size [private]
 

Definition at line 94 of file token.h.

Referenced by Peek2(), Pop(), Push(), and TokenFifo().

int Lex::TokenFifo::tail [private]
 

Definition at line 93 of file token.h.

Referenced by Clear(), Peek2(), Pop(), Push(), and TokenFifo().


The documentation for this class was generated from the following files:
Generated on Mon Feb 10 17:35:52 2003 for VFiasco Semantics Compiler by doxygen1.2.15