Finished up the keyword resolution issue and fixed for, while and until. Other tags still need work.

This commit is contained in:
brad Arant committed 2024-11-10 18:45:12 -08:00
1 parent 93a520f152
commit 6da620971e
8 files changed
+61 -47

No files matched your search

+2 -2
View File
@@ -24,9 +24,9 @@ namespace jet {
resolveKeyword("name");
if(variableDefined("expr")) {
resolveKeyword("eval");
resolveKeyword("expr");
if(!variableDefined("scope") || (variables["scope"] == "global"))
global.variables[variables["name"]] = Operand(variables["expr"]).string;
global.variables[variables["name"]] = Operand(variables["expr"]).string;
else if(variables["scope"] == "local")
parent->variables[variables["name"]] = Operand(variables["expr"]).string;
else if(variables["scope"] == "parent")