Struct SemanticValues

Inheritance Relationships

Base Type

  • protected std::vector< std::any >

Struct Documentation

struct SemanticValues : protected std::vector<std::any>

Public Functions

SemanticValues() = default
inline SemanticValues(Context *c)
inline std::string_view sv() const
inline const std::string &name() const
inline std::pair<size_t, size_t> line_info() const
inline size_t choice_count() const
inline size_t choice() const
inline std::string_view token(size_t id = 0) const
inline std::string token_to_string(size_t id = 0) const
template<typename T>
inline T token_to_number() const
template<typename T>
inline std::vector<T> transform(size_t beg = 0, size_t end = static_cast<size_t>(-1)) const

Public Members

const char *path = nullptr
const char *ss = nullptr
std::vector<unsigned int> tags
std::vector<std::string_view> tokens