Euphoria
eu::core::TokenReader Struct Reference

Public Member Functions

 TokenReader (const std::vector< Token > &input)
 
void advance ()
 
const Tokenread ()
 
bool has_more () const
 
const Tokenpeek () const
 
int get_line () const
 
int get_column () const
 

Public Attributes

std::vector< Tokentokens
 
std::size_t next_token_index = 0
 
std::size_t size
 

Detailed Description

Definition at line 456 of file texttemplate.cc.

Constructor & Destructor Documentation

◆ TokenReader()

eu::core::TokenReader::TokenReader ( const std::vector< Token > &  input)
inlineexplicit

Definition at line 462 of file texttemplate.cc.

Member Function Documentation

◆ advance()

void eu::core::TokenReader::advance ( )
inline

Definition at line 468 of file texttemplate.cc.

◆ get_column()

int eu::core::TokenReader::get_column ( ) const
inline

Definition at line 500 of file texttemplate.cc.

◆ get_line()

int eu::core::TokenReader::get_line ( ) const
inline

Definition at line 495 of file texttemplate.cc.

◆ has_more()

bool eu::core::TokenReader::has_more ( ) const
inline

Definition at line 480 of file texttemplate.cc.

◆ peek()

const Token& eu::core::TokenReader::peek ( ) const
inline

Definition at line 485 of file texttemplate.cc.

◆ read()

const Token& eu::core::TokenReader::read ( )
inline

Definition at line 473 of file texttemplate.cc.

Member Data Documentation

◆ next_token_index

std::size_t eu::core::TokenReader::next_token_index = 0

Definition at line 459 of file texttemplate.cc.

◆ size

std::size_t eu::core::TokenReader::size

Definition at line 460 of file texttemplate.cc.

◆ tokens

std::vector<Token> eu::core::TokenReader::tokens

Definition at line 458 of file texttemplate.cc.


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