Fixing assignments on variable maps.

This commit is contained in:
Brad Arant 2024-02-16 14:42:36 -08:00
parent bb7be37fd6
commit 59fe0d5bd6
15 changed files with 5 additions and 20 deletions

Binary file not shown.

BIN
Global.o

Binary file not shown.

BIN
Tag.o

Binary file not shown.

BIN
__for.o

Binary file not shown.

BIN
__if.o

Binary file not shown.

BIN
__jet.o

Binary file not shown.

BIN
__mysql.o

Binary file not shown.

BIN
__read.o

Binary file not shown.

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;
}
}

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
__while.o

Binary file not shown.

View File

@ -1 +0,0 @@
*.o

BIN
testjet Executable file

Binary file not shown.

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
testjet.o

Binary file not shown.