public void Run() { CurrentlyRunning = this; foreach (string line in code) { if (EggCodeParser.skip == 0) { EggCodeParser.ParseLine(line); } else if (EggCodeParser.skip != 0) { EggCodeParser.skip -= 1; } } if (LoopForever) { Run(); } else if (LoopConditionTag && !EggCodeParser.Eval(LoopCondition)) { Run(); } }
public void RunWithPrams(string pramCalls) { CurrentlyRunning = this; int i = 0; foreach (string pram in prams_string.StringSplit(", ")) { string s_pram = (string)EggCodeParser.ParseInput(pram); object s_pramValue = EggCodeParser.ParseInput(pramCalls.StringSplit(", ")[i]); EggCodeTypeVarible temp = new EggCodeTypeVarible(s_pram, s_pramValue); privateVaribles.Add(temp); i++; } foreach (string line in code) { if (EggCodeParser.skip == 0) { EggCodeParser.ParseLine(line); } else if (EggCodeParser.skip != 0) { EggCodeParser.skip -= 1; } } if (LoopForever) { Run(); } else if (LoopConditionTag && !EggCodeParser.Eval(LoopCondition)) { Run(); } }