rewriting parser in applicative style