diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-07-14 18:08:44 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-07-14 18:08:44 +0200 |
| commit | a32a61813ebaecf0c1e69fd1481bf09d8c8b1420 (patch) | |
| tree | ecfb6140075e3c46b599755e220dbf560de2e31d /boot/driver.cc | |
| parent | 51e2f98e33ae10fc3052335cc6847bc93d0784fa (diff) | |
| download | elna-a32a61813ebaecf0c1e69fd1481bf09d8c8b1420.tar.gz | |
Support more floating point literals
Diffstat (limited to 'boot/driver.cc')
| -rw-r--r-- | boot/driver.cc | 9 |
1 files changed, 5 insertions, 4 deletions
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<std::size_t>(location.begin.line); - result.column = static_cast<std::size_t>(location.begin.column); + auto start_location = boot::location(static_cast<std::size_t>(location.begin.line), + static_cast<std::size_t>(location.begin.column)); + auto end_location = boot::location(static_cast<std::size_t>(location.end.line), + static_cast<std::size_t>(location.end.column)); - return result; + return position(start_location, end_location); } syntax_error::syntax_error(const std::string& message, const yy::location& location) |
