Fixing assignments on variable maps.

This commit is contained in:
Brad Arant committed 2024-02-16 14:42:36 -08:00
1 parent bb7be37fd6
commit 59fe0d5bd6
15 files changed
+5 -20

No files matched your search

BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+4 -2
View File
@@ -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
View File
@@ -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);
}
}
BIN
View File
Binary file not shown.
-1
View File
@@ -1 +0,0 @@
*.o
Executable
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -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;
}
BIN
View File
Binary file not shown.