Source

ocaml-indent / tokenstr.mli

open Planck.Lazylist
open Pos

type info = {
  token  : Parser.token;     (** parsed token *)
  region : Region.t;         (** the position of the token *)
  substr : string;           (** the actual string for the token *)
  space  : Region.t * string (** space before the token *)
}

type t

val stream : t -> (info, unit) zlist
val close : t -> unit
val of_channel : in_channel -> t
val of_path : string -> t