it is possible to supply an IO object to be parsed