handle streams of Token.t * Pos.t in parser