Grammar and output for function name