Parse function declaration