parse: Added basic parsing for generic functions