19 lines
444 B
C++
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();
|
|
|
|
}
|
|
|
|
}
|