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/ast.cc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'boot/ast.cc') diff --git a/boot/ast.cc b/boot/ast.cc index 4af906f..14bad30 100644 --- a/boot/ast.cc +++ b/boot/ast.cc @@ -432,9 +432,9 @@ namespace elna::boot void walking_visitor::visit(traits_expression *trait) { - if (!trait->parameters.empty()) + if (!trait->arguments.empty()) { - trait->parameters.front()->accept(this); + trait->arguments.front()->accept(this); } } @@ -1148,8 +1148,9 @@ namespace elna::boot delete m_operand; } - procedure_call::procedure_call(const struct position position, designator_expression *callable) - : node(position), m_callable(callable) + procedure_call::procedure_call(const struct position position, designator_expression *callable, + std::vector&& arguments) + : node(position), m_callable(callable), arguments(std::move(arguments)) { } @@ -1208,16 +1209,17 @@ namespace elna::boot delete m_value; } - traits_expression::traits_expression(const struct position position, const std::string& name) - : node(position), name(name) + traits_expression::traits_expression(const struct position position, const std::string& name, + std::vector&& arguments) + : node(position), arguments(std::move(arguments)), name(name) { } traits_expression::~traits_expression() { - for (const type_expression *parameter : this->parameters) + for (const type_expression *argument : this->arguments) { - delete parameter; + delete argument; } } -- cgit v1.2.3