work towards a clean compile on migrating set and get variables from Tag.
This commit is contained in:
1 parent
2549220914
commit
5c27df59da
25 files changed
+178
-306
No files matched your search
@@ -1,7 +1,5 @@
|
||||
#include "__set.h"
|
||||
#include "Exception.h"
|
||||
#include "Operand.h"
|
||||
#include "KeywordValue.h"
|
||||
#include <iostream>
|
||||
|
||||
namespace jet {
|
||||
@@ -21,42 +19,8 @@ namespace jet {
|
||||
if(keywordDefined("expr") && keywordDefined("eval"))
|
||||
throw coreutils::Exception("Cannot use eval with expr.");
|
||||
|
||||
resolveKeyword("name");
|
||||
storeVariable(keywords["name"]);
|
||||
|
||||
// if(keywordDefined("expr")) {
|
||||
// if(!keywordDefined("scope") || (keywords["scope"] == "global"))
|
||||
// global.variables[keywords["name"]] = Operand(keywords["expr"], global, parent->variables, keywords).string;
|
||||
// else if(keywords["scope"] == "local")
|
||||
// local->variables[keywords["name"]] = Operand(keywords["expr"], global, parent->variables, keywords).string;
|
||||
// else if(keywords["scope"] == "parent")
|
||||
// local->parent->variables[keywords["name"]] = Operand(keywords["expr"], global, parent->variables, keywords).string;
|
||||
// } else if(hasContainer) {
|
||||
// processContainer(container);
|
||||
// if(evaluate) {
|
||||
// if(!keywordDefined("scope") || (keywords["scope"] == "global"))
|
||||
// global.variables[keywords["name"]] = out;
|
||||
// else if(keywords["scope"] == "local")
|
||||
// local->variables[keywords["name"]] = out;
|
||||
// else if(keywords["scope"] == "parent")
|
||||
// local->parent->variables[keywords["name"]] = out;
|
||||
// } else {
|
||||
// if(!keywordDefined("scope") || (keywords["scope"] == "global"))
|
||||
// global.variables[keywords["name"]] = container;
|
||||
// else if(keywords["scope"] == "local")
|
||||
// local->variables[keywords["name"]] = container;
|
||||
// else if(keywords["scope"] == "parent")
|
||||
// local->parent->variables[keywords["name"]] = container;
|
||||
// }
|
||||
// } else {
|
||||
// resolveKeyword("value");
|
||||
// if(!keywordDefined("scope") || (keywords["scope"] == "global"))
|
||||
// global.variables[keywords["name"]] = keywords["value"];
|
||||
// else if(keywords["scope"] == "local")
|
||||
// local->variables[keywords["name"]] = keywords["value"];
|
||||
// else if(keywords["scope"] == "parent")
|
||||
// local->parent->variables[keywords["name"]] = keywords["value"];
|
||||
// }
|
||||
|
||||
}
|
||||
storeVariable(keywords[resolveKeyword("name")]);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user