Initial work on type parsing