Module Versioned_file.First_lineSource

First line of versioned files

Sourcetype t = {
  1. lang : Stdune.Loc.t * string;
  2. version : Stdune.Loc.t * string;
}
Sourceval lex : Lexing.lexbuf -> t

Parse the first line of a versioned file.

Sourceval lex_opt : Lexing.lexbuf -> t option

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