33 std::optional<Error>
err;
36 void report(
int row,
int column, std::string line, std::string_view message);
38 void report(
const std::vector<std::pair<Token, std::string>> &reports);
94 return (*
this)[
size_ - 1];
130std::string
filename(
const std::string_view &
str,
size_t pos);
132std::string
line_str(
const std::string_view &
str,
size_t pos);
135static inline int pad(
int size,
int align)
137 return ((size + align - 1) / align) * align;
size_t line_number(const std::string_view &str, size_t pos)
std::string filename(const std::string_view &str, size_t pos)
size_t char_number(const std::string_view &str, size_t pos)
std::string line_str(const std::string_view &str, size_t pos)
static int pad(int size, int align)
unsigned __int64 uint64_t
std::string default_filename
void report(Token tok, std::string_view message)
std::optional< Error > err
bool overlaps(IndexRange other) const
IndexRange(int64_t start, int64_t size)
void shrink(int64_t new_size)
const T & operator[](const int64_t index) const
T & operator[](const int64_t index)