Fixing assignments on variable maps.
This commit is contained in:
1 parent
bb7be37fd6
commit
59fe0d5bd6
15 files changed
+5
-20
No files matched your search
Binary file not shown.
@@ -9,8 +9,10 @@ namespace jet {
|
||||
std::cout << "value: [" << keywords["value"] << "]" << std::endl;
|
||||
std::cout << "container: [" << container << "]" << std::endl;
|
||||
std::cout << "scope: [" << keywords["scope"] << "]" << std::endl;
|
||||
global.variables[name] = container;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
-16
@@ -1,16 +0,0 @@
|
||||
#include "__set.h"
|
||||
#include "Exception.h"
|
||||
#include <iostream>
|
||||
|
||||
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 << "container: [" << container << "]" << std::endl;
|
||||
std::cout << "scope: [" << keywords["scope"] << "]" << std::endl;
|
||||
global.variables[name] = coreutils::MString(container);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
*.o
|
||||
+1
-1
@@ -27,5 +27,5 @@ int main(int argc, char **argv) {
|
||||
jet::__jet *jet = new jet::__jet(data, out, global);
|
||||
delete jet;
|
||||
std::cout << ">>-------" << std::endl << out << std::endl << "<<------";
|
||||
|
||||
std::cout << ">>" << global.variables["thename"] << "<<" << std::endl;
|
||||
}
|
||||
Reference in new issue
Block a user