Utilities to convert a parser into a pipe