parsing type declarations