This commit is contained in:
Ryan 2017-08-24 13:25:44 -04:00
parent ce12e8d615
commit 505879f80e
2 changed files with 5 additions and 9 deletions

View File

@ -37,14 +37,14 @@ ENABLE leaking
food="Hi"
SetENV(env)
food="Hello"
"$food$"
"IN_HERE $food$"
env=GetDefualtENV()
SetENV(env)
"$food$"
--test=CallMe("This","is a test!")
"OUT_HERE $food$"
test=CallMe("This","is a test!")
"$test$"
"Did it work!"
--QUIT()
QUIT()
}
[CallMe:function(args1,args2)]{
"function was called!"

View File

@ -253,7 +253,7 @@ namespace parseManager
public void PushError(string err)
{
Console.WriteLine(err);
Deactivate();
def.EXIT();
}
public nextType Next(string BLOCK)
{
@ -375,15 +375,12 @@ namespace parseManager
var args = (string[])stuff[2];
object data;
var env = GetENV();
Console.WriteLine("CALLING: " + func);
if (args.Length == 1 && args[0] == "") { // assume no args inserted!
data = InvokeR(func, new object[]{ });
} else {
data = InvokeR(func, ResolveVar(args));
}
Console.WriteLine("RETURN: "+retargs[0]+"|"+data);
env[retargs[0]] = data;
Console.WriteLine(env);
GLOBALS.Add_Var(retargs[0]);
tempReturn.SetCMDType("method");
tempReturn.SetText("INVOKED METHOD: " + func);
@ -508,7 +505,6 @@ namespace parseManager
public bool isVar(string val, out object v)
{
object va;
Console.WriteLine(val);
if (_defualtENV.TryGetValue(val, out va)) {
v = va;
return true;