Definition at line 93 of file Clexer.h.
 
 | 
|   | TokenStream (const std::string &fileName) | 
|   | 
|   | TokenStream (const std::string &fileName, const Sawyer::Container::Buffer< size_t, char >::Ptr &buffer) | 
|   | 
|   | TokenStream (TokenStream &super, const Indices ®ion) | 
|   | 
| 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 Token &  | operator[] (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::LineVector &  | content () const | 
|   | 
◆ TokenStream() [1/3]
  
  
      
        
          | Sawyer::Language::Clexer::TokenStream::TokenStream  | 
          ( | 
          const std::string &  | 
          fileName | ) | 
           | 
         
       
   | 
  
inlineexplicit   | 
  
 
 
◆ TokenStream() [2/3]
  
  
      
        
          | Sawyer::Language::Clexer::TokenStream::TokenStream  | 
          ( | 
          const std::string &  | 
          fileName,  | 
         
        
           | 
           | 
          const Sawyer::Container::Buffer< size_t, char >::Ptr &  | 
          buffer  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
◆ TokenStream() [3/3]
  
  
      
        
          | Sawyer::Language::Clexer::TokenStream::TokenStream  | 
          ( | 
          TokenStream &  | 
          super,  | 
         
        
           | 
           | 
          const Indices &  | 
          region  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
◆ fileName()
  
  
      
        
          | const std::string Sawyer::Language::Clexer::TokenStream::fileName  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ skipPreprocessorTokens() [1/2]
  
  
      
        
          | bool Sawyer::Language::Clexer::TokenStream::skipPreprocessorTokens  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ skipPreprocessorTokens() [2/2]
  
  
      
        
          | void Sawyer::Language::Clexer::TokenStream::skipPreprocessorTokens  | 
          ( | 
          bool  | 
          b | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ skipCommentTokens() [1/2]
  
  
      
        
          | bool Sawyer::Language::Clexer::TokenStream::skipCommentTokens  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ skipCommentTokens() [2/2]
  
  
      
        
          | void Sawyer::Language::Clexer::TokenStream::skipCommentTokens  | 
          ( | 
          bool  | 
          b | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ content()
The documentation for this class was generated from the following file: