public XBFunction(Interpreter context, string name, string[] args, int lineNumber) : base(lineNumber) { this.name = name; variables = new List<XBFVariable>(); foreach (string arg in args) { string[] tokens = arg.Split(' '); if (!Interpreter.TYPES.Contains(tokens[0].ToLower())) { context.ThrowError("[Function (" + name + ") + argument + (" + tokens[1] + ")] Type " + tokens[0] + " not recognized.", lineNumber); } XBFVariable variable; variable.name = tokens[1]; variable.type = tokens[0]; variables.Add(variable); } Debug.Log("Created function frame for function " + name + " @ line " + lineNumber); }