Module Cobol_preproc.Input

type t = {
  1. source : source;
  2. filename : string;
}
and source =
  1. | String of string
  2. | Channel of Stdlib.in_channel
val string : filename:string -> string -> t
val channel : filename:string -> Stdlib.in_channel -> t
val from : filename:string -> f:(t -> 'a) -> platform:Cobol_common.Platform.TYPES.platform -> 'a

from ~filename ~f feeds f with the contents of a file named filename; uses stdin if filename = "".