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 | |
Lex * | lex |
int | head |
int | tail |
int | size |
Lex::TokenFifo::Slot * | ring |
|
|
|
|
|
Definition at line 252 of file token.cc. Referenced by Lex::Restore(). |
|
Definition at line 296 of file token.cc. References Lex::TokenFifo::Slot::len, Peek2(), Lex::TokenFifo::Slot::pos, ring, and Lex::TokenFifo::Slot::token. |
|
Definition at line 291 of file token.cc. Referenced by Lex::LookAhead(), and Lex::Save(). |
|
Definition at line 304 of file token.cc. References head, lex, Push(), Lex::ReadToken(), size, and tail. Referenced by Peek(). |
|
Definition at line 279 of file token.cc. References head, lex, Lex::ReadToken(), ring, size, and tail. Referenced by Lex::GetToken(). |
|
Definition at line 257 of file token.cc. References head, ring, size, tail, and token. Referenced by Peek2(). |
|
Definition at line 92 of file token.h. Referenced by Clear(), Peek2(), Pop(), Push(), and TokenFifo(). |
|
|
|
|
|
|
|
Definition at line 93 of file token.h. Referenced by Clear(), Peek2(), Pop(), Push(), and TokenFifo(). |