From a32a61813ebaecf0c1e69fd1481bf09d8c8b1420 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Tue, 14 Jul 2026 18:08:44 +0200 Subject: Support more floating point literals --- boot/result.cc | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'boot/result.cc') diff --git a/boot/result.cc b/boot/result.cc index 2222bd5..90d0ad6 100644 --- a/boot/result.cc +++ b/boot/result.cc @@ -19,19 +19,24 @@ along with GCC; see the file COPYING3. If not see namespace elna::boot { - error::error(const struct position position) - : position(position) + location::location(std::size_t line, std::size_t column) + : line(line), column(column) { } - std::size_t error::line() const noexcept + bool location::available() const { - return this->position.line; + return this->line != 0 || this->column != 0; } - std::size_t error::column() const noexcept + position::position(location start, location end) + : start(start), end(end) + { + } + + error::error(const struct position position) + : position(position) { - return this->position.column; } std::deque>& error_container::errors() -- cgit v1.2.3