function for making bind-chain parsers