new code
This commit is contained in:
parent
ce12e8d615
commit
505879f80e
@ -37,14 +37,14 @@ ENABLE leaking
|
|||||||
food="Hi"
|
food="Hi"
|
||||||
SetENV(env)
|
SetENV(env)
|
||||||
food="Hello"
|
food="Hello"
|
||||||
"$food$"
|
"IN_HERE $food$"
|
||||||
env=GetDefualtENV()
|
env=GetDefualtENV()
|
||||||
SetENV(env)
|
SetENV(env)
|
||||||
"$food$"
|
"OUT_HERE $food$"
|
||||||
--test=CallMe("This","is a test!")
|
test=CallMe("This","is a test!")
|
||||||
"$test$"
|
"$test$"
|
||||||
"Did it work!"
|
"Did it work!"
|
||||||
--QUIT()
|
QUIT()
|
||||||
}
|
}
|
||||||
[CallMe:function(args1,args2)]{
|
[CallMe:function(args1,args2)]{
|
||||||
"function was called!"
|
"function was called!"
|
||||||
|
|||||||
@ -253,7 +253,7 @@ namespace parseManager
|
|||||||
public void PushError(string err)
|
public void PushError(string err)
|
||||||
{
|
{
|
||||||
Console.WriteLine(err);
|
Console.WriteLine(err);
|
||||||
Deactivate();
|
def.EXIT();
|
||||||
}
|
}
|
||||||
public nextType Next(string BLOCK)
|
public nextType Next(string BLOCK)
|
||||||
{
|
{
|
||||||
@ -375,15 +375,12 @@ namespace parseManager
|
|||||||
var args = (string[])stuff[2];
|
var args = (string[])stuff[2];
|
||||||
object data;
|
object data;
|
||||||
var env = GetENV();
|
var env = GetENV();
|
||||||
Console.WriteLine("CALLING: " + func);
|
|
||||||
if (args.Length == 1 && args[0] == "") { // assume no args inserted!
|
if (args.Length == 1 && args[0] == "") { // assume no args inserted!
|
||||||
data = InvokeR(func, new object[]{ });
|
data = InvokeR(func, new object[]{ });
|
||||||
} else {
|
} else {
|
||||||
data = InvokeR(func, ResolveVar(args));
|
data = InvokeR(func, ResolveVar(args));
|
||||||
}
|
}
|
||||||
Console.WriteLine("RETURN: "+retargs[0]+"|"+data);
|
|
||||||
env[retargs[0]] = data;
|
env[retargs[0]] = data;
|
||||||
Console.WriteLine(env);
|
|
||||||
GLOBALS.Add_Var(retargs[0]);
|
GLOBALS.Add_Var(retargs[0]);
|
||||||
tempReturn.SetCMDType("method");
|
tempReturn.SetCMDType("method");
|
||||||
tempReturn.SetText("INVOKED METHOD: " + func);
|
tempReturn.SetText("INVOKED METHOD: " + func);
|
||||||
@ -508,7 +505,6 @@ namespace parseManager
|
|||||||
public bool isVar(string val, out object v)
|
public bool isVar(string val, out object v)
|
||||||
{
|
{
|
||||||
object va;
|
object va;
|
||||||
Console.WriteLine(val);
|
|
||||||
if (_defualtENV.TryGetValue(val, out va)) {
|
if (_defualtENV.TryGetValue(val, out va)) {
|
||||||
v = va;
|
v = va;
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user