Added first revision support for function definitions.

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