Logic.Makemodule L : Dolmen_intf.Location.Smodule I : Dolmen_intf.Id.LogicRaised when trying to find a language given a file extension.
val enum : (string * language) listEnumeration of languages together with an appropriate name. Can be used for command-line arguments (for instance, with cmdliner).
val string_of_language : language -> stringString representation of the variant
val find : ?language:language -> ?dir:string -> string -> string optionTries and find the given file, using the language specification.
Given a filename, parse the file, and return the detected language together with the list of statements parsed.
val parse_input :
?language:language ->
[ `File of string | `Stdin of language ] ->
language * (unit -> S.t option) * (unit -> unit)Incremental parsing of either a file (see parse_file), or stdin (with given language). Returns a triplet (lan, gen, cl), containing the language detexted lan, a genratro function gen for parsing the input, and a cleanup function cl to call in order to cleanup the file descriptors.
module type S = Dolmen_intf.Language.S with type statement := S.tThe type of language modules.