package earley

  1. Overview
  2. Docs

Module Input.WithPPSource

Functor for building buffers with a preprocessor.

Parameters

module PP : Preprocessor

Signature

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

Same as Input.from_fun but uses the preprocessor.

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

Same as Input.from_channel but uses the preprocessor.

Sourceval from_file : string -> buffer

Same as Input.from_file but uses the preprocessor.

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

Same as Input.from_string but uses the preprocessor.

OCaml

Innovation. Community. Security.