private void Compile(FileClass temp) { Functions = temp.Functions .Values .ToArray<FuncClass>(); RSLCode = temp.rslCode.ToArray<string>(); Code = temp.rppCode.ToArray<string>(); Errors = Global.Errors.ToArray(); }
//Populates Inherited and extended function lists to be processed in addPrototype() private Dictionary<string, FuncClass> ProcessProtoype(string prototype, Dictionary<string, FuncClass> Group) { try { FileClass prototype_file = new FileClass(prototype); foreach (string key in prototype_file.Functions.Keys) if (!Group.ContainsKey(key)) Group.Add(key, prototype_file.Functions[key]); } catch { Global.Errors.Add (new ErrorClass ("File", "Improper use of Prototype", prototype)); } return Group; }