sammine-lang
Loading...
Searching...
No Matches
sammine_lang::TokenStream Class Reference

A helper class for Lexer to simplify the process of getting a token. More...

#include <Token.h>

Public Member Functions

void push_back (const std::shared_ptr< Token > &token)
 
bool hasErrors ()
 
void push_back (const Token &token)
 
std::shared_ptr< Token > & exhaust_until (TokenType tokType)
 
bool isEnd ()
 
std::shared_ptr< Tokenpeek ()
 
std::shared_ptr< Tokenconsume ()
 
sammine_util::Location currentLocation ()
 

Public Attributes

std::vector< std::shared_ptr< Token > > ErrStream
 

Detailed Description

A helper class for Lexer to simplify the process of getting a token.


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