Add type signatures to the parser.