Parse function definitions