Convert parser to applicative style