attempt at getting variables to work.
This commit is contained in:
1 parent
59fe0d5bd6
commit
50270bbc91
8 files changed
+41
-35
No files matched your search
@@ -5,14 +5,20 @@
|
||||
namespace jet {
|
||||
|
||||
__set::__set(coreutils::ZString &in, coreutils::MString &out, Global &global) : Tag(in, out, global) {
|
||||
std::cout << "name: [" << keywords["name"] << "]" << std::endl;
|
||||
std::cout << "value: [" << keywords["value"] << "]" << std::endl;
|
||||
std::cout << "name: [" << variables["name"] << "]" << std::endl;
|
||||
std::cout << "value: [" << variables["value"] << "]" << std::endl;
|
||||
std::cout << "container: [" << container << "]" << std::endl;
|
||||
std::cout << "scope: [" << keywords["scope"] << "]" << std::endl;
|
||||
std::cout << "var1: [" << global.variables.size() << "]" << std::endl;
|
||||
global.variables[keywords["name"]] = container;
|
||||
std::cout << "var2: [" << global.variables.size() << "]" << std::endl;
|
||||
std::cout << "varx: [" << global.variables["varname"] << "]" << std::endl;
|
||||
std::cout << "scope: [" << variables["scope"] << "]" << std::endl;
|
||||
|
||||
if(variables["scope"] == "local")
|
||||
variables[variables["name"]] = variables["value"];
|
||||
if(variables["scope"] == "global")
|
||||
global.variables[variables["name"]] = container;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user