#include <exprtk.hpp>
Public Types | |
enum | token_type { e_none = 0, e_error = 1, e_err_symbol = 2, e_err_number = 3, e_err_string = 4, e_err_sfunc = 5, e_eof = 6, e_number = 7, e_symbol = 8, e_string = 9, e_assign = 10, e_addass = 11, e_subass = 12, e_mulass = 13, e_divass = 14, e_shr = 15, e_shl = 16, e_lte = 17, e_ne = 18, e_gte = 19, e_lt = '<', e_gt = '>', e_eq = '=', e_rbracket = ')', e_lbracket = '(', e_rsqrbracket = ']', e_lsqrbracket = '[', e_rcrlbracket = '}', e_lcrlbracket = '{', e_comma = ',', e_add = '+', e_sub = '-', e_div = '/', e_mul = '*', e_mod = '', e_pow = '^', e_colon = ':', e_ternary = '?' } |
Public Member Functions | |
void | clear () |
bool | is_error () const |
template<typename Iterator > | |
token & | set_error (const token_type et, const Iterator begin, const Iterator end, const Iterator base_begin=Iterator(0)) |
template<typename Iterator > | |
token & | set_numeric (const Iterator begin, const Iterator end, const Iterator base_begin=Iterator(0)) |
template<typename Iterator > | |
token & | set_operator (const token_type tt, const Iterator begin, const Iterator end, const Iterator base_begin=Iterator(0)) |
template<typename Iterator > | |
token & | set_string (const Iterator begin, const Iterator end, const Iterator base_begin=Iterator(0)) |
token & | set_string (const std::string &s, const std::size_t p) |
template<typename Iterator > | |
token & | set_symbol (const Iterator begin, const Iterator end, const Iterator base_begin=Iterator(0)) |
token () | |
Static Public Member Functions | |
static std::string | to_str (token_type t) |
Public Attributes | |
std::size_t | position |
token_type | type |
std::string | value |
Definition at line 1514 of file exprtk.hpp.
Definition at line 1516 of file exprtk.hpp.
exprtk::lexer::token::token | ( | ) | [inline] |
Definition at line 1533 of file exprtk.hpp.
void exprtk::lexer::token::clear | ( | ) | [inline] |
Definition at line 1539 of file exprtk.hpp.
bool exprtk::lexer::token::is_error | ( | ) | const [inline] |
Definition at line 1660 of file exprtk.hpp.
token& exprtk::lexer::token::set_error | ( | const token_type | et, |
const Iterator | begin, | ||
const Iterator | end, | ||
const Iterator | base_begin = Iterator(0) |
||
) | [inline] |
Definition at line 1595 of file exprtk.hpp.
token& exprtk::lexer::token::set_numeric | ( | const Iterator | begin, |
const Iterator | end, | ||
const Iterator | base_begin = Iterator(0) |
||
) | [inline] |
Definition at line 1567 of file exprtk.hpp.
token& exprtk::lexer::token::set_operator | ( | const token_type | tt, |
const Iterator | begin, | ||
const Iterator | end, | ||
const Iterator | base_begin = Iterator(0) |
||
) | [inline] |
Definition at line 1547 of file exprtk.hpp.
token& exprtk::lexer::token::set_string | ( | const Iterator | begin, |
const Iterator | end, | ||
const Iterator | base_begin = Iterator(0) |
||
) | [inline] |
Definition at line 1577 of file exprtk.hpp.
token& exprtk::lexer::token::set_string | ( | const std::string & | s, |
const std::size_t | p | ||
) | [inline] |
Definition at line 1586 of file exprtk.hpp.
token& exprtk::lexer::token::set_symbol | ( | const Iterator | begin, |
const Iterator | end, | ||
const Iterator | base_begin = Iterator(0) |
||
) | [inline] |
Definition at line 1557 of file exprtk.hpp.
static std::string exprtk::lexer::token::to_str | ( | token_type | t | ) | [inline, static] |
Definition at line 1615 of file exprtk.hpp.
std::size_t exprtk::lexer::token::position |
Definition at line 1673 of file exprtk.hpp.
Definition at line 1671 of file exprtk.hpp.
std::string exprtk::lexer::token::value |
Definition at line 1672 of file exprtk.hpp.