How to write the grammar of functions?

Except function, many other grammars need to finished on this grammar page

A recent internals discussion about the state of Rust Grammar: Grammar of rust - #2 by matklad - compiler - Rust Internals

TLDR: there is no grammar at the moment, but everybody wants one.