Changed parser to use `Stream.Transform`

I mentioned the use of X in issue #1, here's a suggestion, if someone can evaluate I thank! :)