Source

ocaml-indent / tokenstr.mli

open Planck.Lazylist
open Pos

module Attr : sig
  type t = {
    region : Region.t;         (** the position of the token *)
    substr : string;           (** the actual string for the token *)
    space  : Region.t * string (** space before the token *)
  }
end

module Stream : Planck.Stream_intf.S 
  with type Elem.t = Parser.token
  and  type Attr.t = Attr.t
  and  type Pos.t  = Pos.Region.t

type t

val stream : t -> Stream.t
val close : t -> unit
val of_channel : in_channel -> t
val of_path : string -> t