continued development

This commit is contained in:
Brad Arant committed 2024-02-16 20:16:14 -08:00
1 parent 50270bbc91
commit 3d98448ec4
6 files changed
+20 -17

No files matched your search

+5 -11
View File
@@ -4,21 +4,15 @@
namespace jet {
__set::__set(coreutils::ZString &in, coreutils::MString &out, Global &global) : Tag(in, out, global) {
std::cout << "name: [" << variables["name"] << "]" << std::endl;
std::cout << "value: [" << variables["value"] << "]" << std::endl;
std::cout << "container: [" << container << "]" << std::endl;
std::cout << "scope: [" << variables["scope"] << "]" << std::endl;
__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")
if(variables["scope"] == "global")
global.variables[variables["name"]] = container;
global.dump();
std::cout << "localvar: [" << variables.size() << "]" << std::endl;
std::cout << "localvarx: [" << variables[variables["name"]] << "]" << std::endl;
std::cout << "globalvar: [" << global.variables.size() << "]" << std::endl;
std::cout << "globalvarx: [" << global.variables[variables["name"]] << "]" << std::endl;
}
}