Struct token

Struct Documentation

struct udho::view::parsing::token

Public Types

enum type

Values:

enumerator op
enumerator function
enumerator call
enumerator comma
enumerator parenthesis_open
enumerator parenthesis_close
enumerator real
enumerator id
enum category

Values:

enumerator none
enumerator arithmetic
enumerator logical
enumerator junction
typedef std::map<std::string, std::size_t> operator_map_type
typedef std::map<std::string, int> function_map_type

Public Functions

bool is(const type &t) const
bool is(const category &c) const
int precedence() const
std::string value() const

Public Static Functions

token create(const std::string &buff)
template<typename T>
T arithmatic(const token &op_token, const T &l, const T &r)
template<typename T>
bool logical(const token &op_token, const T &l, const T &r)