The Battle for Wesnoth  1.19.0-dev
Classes | Typedefs | Enumerations | Functions
wfl::tokenizer Namespace Reference

Classes

struct  token
 
struct  token_error
 

Typedefs

typedef std::string::const_iterator iterator
 

Enumerations

enum class  token_type {
  operator_token , string_literal , identifier , integer ,
  decimal , lparens , rparens , lsquare ,
  rsquare , comma , semicolon , whitespace ,
  eol , keyword , comment , 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 
)