JetCore/__set.cpp
2024-02-16 20:16:14 -08:00

19 lines
444 B
C++

#include "__set.h"
#include "Exception.h"
#include <iostream>
namespace jet {
__set::__set(coreutils::ZString &in, coreutils::MString &out, Global &global) : Tag(in, out, global) {
output = false;
if(variables["scope"] == "local")
variables[variables["name"]] = variables["value"];
if(variables["scope"] == "global")
global.variables[variables["name"]] = container;
global.dump();
}
}