The Battle for Wesnoth  1.17.12+dev
Classes | Typedefs | Enumerations | Functions
wfl::tokenizer Namespace Reference

Classes

struct  token
 
struct  token_error
 

Typedefs

typedef std::string::const_iterator iterator
 

Enumerations

enum  token_type {
  token_type::operator_token, token_type::string_literal, token_type::identifier, token_type::integer,
  token_type::decimal, token_type::lparens, token_type::rparens, token_type::lsquare,
  token_type::rsquare, token_type::comma, token_type::semicolon, token_type::whitespace,
  token_type::eol, token_type::keyword, token_type::comment, token_type::pointer
}
 

Functions

token get_token (iterator &i1, const iterator i2)
 

Typedef Documentation

◆ iterator

typedef std::string::const_iterator wfl::tokenizer::iterator

Definition at line 25 of file tokenizer.hpp.

Enumeration Type Documentation

◆ token_type

Enumerator
operator_token 
string_literal 
identifier 
integer 
decimal 
lparens 
rparens 
lsquare 
rsquare 
comma 
semicolon 
whitespace 
eol 
keyword 
comment 
pointer 

Definition at line 27 of file tokenizer.hpp.

Function Documentation

◆ get_token()

token wfl::tokenizer::get_token ( iterator i1,
const iterator  i2 
)