Parser for type declarations