def AddFunction(self, str, loc, tokens): function = Function(tokens[0]) for parameter in tokens[1:]: function.AddParameter(parameter) self.processor.AddFunction(function) return function