Simple list implementation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user