From 6b53afe6e66bb9f98b6276b31fce80167d07140e Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Thu, 1 Aug 2024 10:47:07 +1000 Subject: [PATCH] xo-parser: prep: + exprstatestack arg to exprstate::on_f64() --- include/xo/parser/parser.hpp | 2 +- src/parser/parser.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/xo/parser/parser.hpp b/include/xo/parser/parser.hpp index 39d768d8..a85f3a16 100644 --- a/include/xo/parser/parser.hpp +++ b/include/xo/parser/parser.hpp @@ -245,7 +245,7 @@ namespace xo { expraction on_symbol(const token_type & tk, exprstatestack * p_stack); expraction on_colon(exprstatestack * p_stack); expraction on_singleassign(exprstatestack * p_stack); - expraction on_f64(const token_type & tk); + expraction on_f64(const token_type & tk, exprstatestack * p_stack); private: /** diff --git a/src/parser/parser.cpp b/src/parser/parser.cpp index 7302bd3b..0bbe0167 100644 --- a/src/parser/parser.cpp +++ b/src/parser/parser.cpp @@ -442,7 +442,9 @@ namespace xo { } expraction - exprstate::on_f64(const token_type & tk) { + exprstate::on_f64(const token_type & tk, + exprstatestack * /*p_stack*/) + { constexpr bool c_debug_flag = true; scope log(XO_DEBUG(c_debug_flag)); @@ -483,7 +485,7 @@ namespace xo { return expraction(); case tokentype::tk_f64: - return this->on_f64(tk); + return this->on_f64(tk, p_stack); case tokentype::tk_string: assert(false);