package pacomb

  1. Overview
  2. Docs

Module Input.WithPPSource

Functor for building buffers with a preprocessor.

Parameters

module PP : Preprocessor

Signature

Sourceval from_fun : ('a -> unit) -> context -> string -> ('a -> string * bool) -> 'a -> buffer

Same as Input.from_fun but uses the preprocessor.

Sourceval from_channel : ?utf8:context -> ?filename:string -> in_channel -> buffer

Same as Input.from_channel but uses the preprocessor.

Sourceval from_file : ?utf8:context -> string -> buffer

Same as Input.from_file but uses the preprocessor.

Sourceval from_string : ?utf8:context -> ?filename:string -> string -> buffer

Same as Input.from_string but uses the preprocessor.