From acb1c33ab258dc14dcc51b405b44cc5923b34324 Mon Sep 17 00:00:00 2001
From: Ferenc Szontágh <szf@fsociety.hu>
Date: Fri, 18 Apr 2025 08:52:16 +0000
Subject: [PATCH] add function call

---
 src/Parser/Parser.cpp |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/Parser/Parser.cpp b/src/Parser/Parser.cpp
index b59b193..3e2bde8 100644
--- a/src/Parser/Parser.cpp
+++ b/src/Parser/Parser.cpp
@@ -133,8 +133,13 @@
     expect(Lexer::Tokens::Type::PUNCTUATION, ")");
     expect(Lexer::Tokens::Type::PUNCTUATION, ";");
     // Record the function call operation
-    Interpreter::OperationsFactory::callFunction(func_name, Symbols::SymbolContainer::instance()->currentScopeName(),
-                                                 this->current_filename_, id_token.line_number, id_token.column_number);
+    Interpreter::OperationsFactory::callFunction(
+        func_name,
+        std::move(args),
+        Symbols::SymbolContainer::instance()->currentScopeName(),
+        this->current_filename_,
+        id_token.line_number,
+        id_token.column_number);
 }
 
 Symbols::Value Parser::parseNumericLiteral(const std::string & value, bool is_negative, Symbols::Variables::Type type) {

--
Gitblit v1.9.3