package ocp-indent-nlfork

  1. Overview
  2. Docs
ocp-indent library, "newline tokens" fork

Install

Dune Dependency

Authors

Maintainers

Sources

nlfork-1.5.4.tar.gz
md5=e9d1a7de64e169536ddf16023b111409
sha512=4637eb4ac2a47001f7b236ad7fdcbf7fe1a659e947a46aacd7ff2f2e386c82c423468aabd6adcabed8caf869d4a8f3f592ea1134b4ba77b7d37080e01cc497dc

doc/ocp-indent-nlfork.utils/Nstream/index.html

Module NstreamSource

Lexer positions & regions

Sourcemodule Position : sig ... end

Lexer positions

Sourcemodule Region : sig ... end

Lexer regions

Enhanced tokens

Sourcetype token = {
  1. token : Approx_lexer.token;
  2. between : string;
  3. substr : string;
  4. region : Region.t;
  5. offset : int;
}
Sourcetype t
Sourceval display : Format.formatter -> token -> unit
Sourceval of_channel : ?st:snapshot -> in_channel -> t

Creates a stream from a channel. Better if you don't want to block, but less efficient

Sourceval of_string : ?st:snapshot -> string -> t

Creates a stream from a string.

Sourceval next : t -> (token * t) option

Get next token from the filter. Returns None after EOF

Sourceval next_full : t -> (token * snapshot * t) option
Sourcemodule Simple : sig ... end
OCaml

Innovation. Community. Security.