ROSE  0.9.10.91
Public Member Functions | List of all members
Sawyer::Language::Clexer::TokenStream Class Reference

Description

Definition at line 59 of file Clexer.h.

Public Member Functions

 TokenStream (const std::string &fileName)
 
 TokenStream (const std::string &fileName, const Sawyer::Container::Buffer< size_t, char >::Ptr &buffer)
 
const std::string fileName () const
 
bool skipPreprocessorTokens () const
 
void skipPreprocessorTokens (bool b)
 
const Tokenoperator[] (size_t lookahead)
 
void consume (size_t n=1)
 
std::string lexeme (const Token &t) const
 
std::string toString (const Token &t) const
 
std::string line (const Token &t) const
 
bool matches (const Token &token, const char *s2) const
 
void emit (std::ostream &out, const std::string &fileName, const Token &token, const std::string &message) const
 
void emit (std::ostream &out, const std::string &fileName, const Token &begin, const Token &locus, const Token &end, const std::string &message) const
 
std::pair< size_t, size_t > location (const Token &token) const
 

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