Basic math support

This commit is contained in:
2025-10-30 10:55:21 +00:00
parent 7c633c334c
commit 817cf5a1a9
6 changed files with 264 additions and 8 deletions

View File

@@ -36,6 +36,7 @@ class Executor {
std::optional<ASTNode> consume();
std::optional<ASTNode> peek(int ahead = 1);
void printValue(const ASTValue& arg);
ASTValue evaluateOperator(const std::shared_ptr<ASTOperator>& op);
public:
explicit Executor(ASTCodeBlock in, bool isInitCall = false, std::map<std::string, Object> scopeVals = {}, std::vector<Object> args = {});
std::map<std::string, Object> getVariables();