Module Versioned_file.First_line

First line of versioned files

type t = {
lang : Stdune.Loc.t * string;
version : Stdune.Loc.t * string;
}
val lex : Stdlib.Lexing.lexbuf -> t

Parse the first line of a versioned file.

val lex_opt : Stdlib.Lexing.lexbuf -> t option

Parse the first line of a versioned file but do not fail if it doesn't start with (lang ...).