Add parsing of type definitions