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

Description

Definition at line 93 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)
 
 TokenStream (TokenStream &super, const Indices &region)
 
const std::string fileName () const
 
bool skipPreprocessorTokens () const
 
void skipPreprocessorTokens (bool b)
 
bool skipCommentTokens () const
 
void skipCommentTokens (bool b)
 
int getChar (size_t position)
 
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
 
bool startsWith (const Token &token, const char *prefix) 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
 
const Sawyer::Container::LineVectorcontent () const
 

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