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/driver.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'boot/driver.cc') diff --git a/boot/driver.cc b/boot/driver.cc index b2ffe60..b51da32 100644 --- a/boot/driver.cc +++ b/boot/driver.cc @@ -21,11 +21,12 @@ namespace elna::boot { position make_position(const yy::location& location) { - position result; - result.line = static_cast(location.begin.line); - result.column = static_cast(location.begin.column); + auto start_location = boot::location(static_cast(location.begin.line), + static_cast(location.begin.column)); + auto end_location = boot::location(static_cast(location.end.line), + static_cast(location.end.column)); - return result; + return position(start_location, end_location); } syntax_error::syntax_error(const std::string& message, const yy::location& location) -- cgit v1.2.3