14struct formula_parse_context {
15 using const_iterator =
typename std::vector<token_t>::const_iterator;
18 const_iterator token_it;
20 formula_parse_context(std::string_view::const_iterator first, std::string_view::const_iterator last) :
21 tokens(
parseTokens(first, last)), token_it(tokens.begin())
25 [[nodiscard]]
token_t const &operator*()
const noexcept
30 [[nodiscard]]
token_t const *operator->()
const noexcept
35 formula_parse_context &operator++()
noexcept
38 hi_assert(*token_it != tokenizer_name_t::End);
43 formula_parse_context operator++(
int)
noexcept
#define hi_assert(expression,...)
Assert if expression is true.
Definition assert.hpp:199