Sp8.sc3.integrate parser into stream

integrate the parser into the stream, to make the code easier to maintain and more robust.