Changed function definition to be an expression in grammar.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>