Module Nstream

type token = {
  1. region : Pos.Region.t;
  2. token : Approx_lexer.token;
  3. newlines : int;
  4. between : string Lazy.t;
  5. substr : string Lazy.t;
  6. offset : int;
}
type t
val of_string : ?start_pos:Pos.Position.t -> ?start_offset:int -> string -> t
val of_channel : ?start_pos:Pos.Position.t -> in_channel -> t
val next : t -> (token * t) option