Cobol_preproc.Input
type t =
| String of {
contents : string;
filename : string;
}
| Channel of {
ic : Stdlib.in_channel;
val string : filename:string -> string -> t
val channel : filename:string -> Stdlib.in_channel -> t
val from : filename:string -> f:(t -> 'a) -> 'a
from ~filename ~f feeds f with the contents of a file named filename; uses stdin if filename = "".
from ~filename ~f
f
filename
stdin
filename = ""