diff --git a/Expression.o b/Expression.o deleted file mode 100644 index 24c1d8b..0000000 Binary files a/Expression.o and /dev/null differ diff --git a/Global.o b/Global.o deleted file mode 100644 index 4840528..0000000 Binary files a/Global.o and /dev/null differ diff --git a/Tag.o b/Tag.o deleted file mode 100644 index 973401c..0000000 Binary files a/Tag.o and /dev/null differ diff --git a/__for.o b/__for.o deleted file mode 100644 index c7f7ee4..0000000 Binary files a/__for.o and /dev/null differ diff --git a/__if.o b/__if.o deleted file mode 100644 index a98e4e4..0000000 Binary files a/__if.o and /dev/null differ diff --git a/__jet.o b/__jet.o deleted file mode 100644 index f0d7f2d..0000000 Binary files a/__jet.o and /dev/null differ diff --git a/__mysql.o b/__mysql.o deleted file mode 100644 index 99fc29b..0000000 Binary files a/__mysql.o and /dev/null differ diff --git a/__read.o b/__read.o deleted file mode 100644 index 565dd4b..0000000 Binary files a/__read.o and /dev/null differ diff --git a/__set.cpp b/__set.cpp index d6f58a6..c85ab11 100644 --- a/__set.cpp +++ b/__set.cpp @@ -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; } } diff --git a/__set.cpp~ b/__set.cpp~ deleted file mode 100644 index e2d6688..0000000 --- a/__set.cpp~ +++ /dev/null @@ -1,16 +0,0 @@ -#include "__set.h" -#include "Exception.h" -#include - -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); - - } - -} diff --git a/__while.o b/__while.o deleted file mode 100644 index 4a33ff0..0000000 Binary files a/__while.o and /dev/null differ diff --git a/gitignore~ b/gitignore~ deleted file mode 100644 index 5761abc..0000000 --- a/gitignore~ +++ /dev/null @@ -1 +0,0 @@ -*.o diff --git a/testjet b/testjet new file mode 100755 index 0000000..e474196 Binary files /dev/null and b/testjet differ diff --git a/testjet.cpp b/testjet.cpp index 7a57b9e..5e11d94 100644 --- a/testjet.cpp +++ b/testjet.cpp @@ -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; } diff --git a/testjet.o b/testjet.o deleted file mode 100644 index 7a938ff..0000000 Binary files a/testjet.o and /dev/null differ