Add support for parsing function declarations