1. camlspotter
  2. ocaml-indent

Source

ocaml-indent / tokenstr.mli

Diff from to

File tokenstr.mli

  • Ignore whitespace
-type 'a t
-
 type 'a info = {
-  token : 'a;
-  region : Pos.Region.t;
-  substr : string;
-  space : Pos.Region.t * string
+  token : 'a;                   (** the token *)
+  region : Pos.Region.t;        (** the region of the token *)
+  substr : string;              (** the actual string of the token *)
+  space : Pos.Region.t * string (** white space (non token) between the previous token and this *)
 }
 
-val of_channel : in_channel -> Xparser.token info t
-
-val of_path : string -> Xparser.token info t
-
-val close : 'a t -> unit
-
-val destr : 'a t -> ('a * 'a t) option
+val of_channel : in_channel -> Xparser.token info LazyList.t