From c34b2c57219aa496a202c2be1e12332b4eeea440 Mon Sep 17 00:00:00 2001
From: Ferenc Szontágh <szf@fsociety.hu>
Date: Mon, 14 Apr 2025 15:43:20 +0000
Subject: [PATCH] add function parameter handling and contextes
---
src/VariableTypes.hpp | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/src/VariableTypes.hpp b/src/VariableTypes.hpp
index e03c242..0f3f77d 100644
--- a/src/VariableTypes.hpp
+++ b/src/VariableTypes.hpp
@@ -10,7 +10,7 @@
using DataContainer = std::variant<int, double, std::string, bool>;
-enum class Type : std::uint8_t { VT_INT, VT_DOUBLE, VT_STRING, VT_BOOLEAN, VT_NULL, VT_FUNCTION, VT_NOT_DEFINED };
+enum class Type : std::uint8_t { VT_INT, VT_DOUBLE, VT_STRING, VT_BOOLEAN, VT_NULL, VT_NOT_DEFINED };
const std::unordered_map<std::string, Type> StringToTypeMap = {
{ "int", Type::VT_INT },
@@ -19,7 +19,6 @@
{ "bool", Type::VT_BOOLEAN },
{ "boolean", Type::VT_BOOLEAN },
{ "null", Type::VT_NULL },
- { "function", Type::VT_FUNCTION },
{ "not_defined", Type::VT_NOT_DEFINED },
};
const std::unordered_map<Type, std::string> StypeToStringMap = {
@@ -28,7 +27,6 @@
{ Type::VT_STRING, "string" },
{ Type::VT_BOOLEAN, "bool" },
{ Type::VT_NULL, "null" },
- { Type::VT_FUNCTION, "function" },
{ Type::VT_NOT_DEFINED, "not_defined" },
};
--
Gitblit v1.9.3