Simple list implementation

This commit is contained in:
2025-10-02 14:44:48 +10:00
parent d7123aff1e
commit cf85205ff0
12 changed files with 155 additions and 26 deletions

View File

@@ -13,6 +13,7 @@
#include "../modules/compare/compare.h"
#include "../modules/input/input.h"
#include "../modules/function/function.h"
#include "../modules/concat/concat.h"
Value execute(Instruction inst) {
// Special cases that need to manage their own argument evaluation
@@ -68,6 +69,9 @@ Value execute(Instruction inst) {
case InstructionType::Exit:
return modules::exit(inst.args);
break;
case InstructionType::Concat:
return modules::concat(inst.args);
break;
case InstructionType::Variable: {
if (!inst.args.empty()) {
const std::string& name = inst.args[0].real;