public void AddFunction(Function function) { function.Parent = this; Functions[function.Name] = function; FunctionList.Add(function); if (function.Name == "Go") { EntryPoint = function; } }
public Program() { Functions = new Dictionary<string, Function>(); FunctionList = new List<Function>(); EntryPoint = null; }