Source

ocaml-indent / tokenstr.mli

open Planck.Lazylist
open Pos

type token = Parser.token     (** parsed token *)
type attr = {
  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 -> (token, attr) zlist (* EOF is in info *)
val close : t -> unit
val of_channel : in_channel -> t
val of_path : string -> t