package dune-private-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

First line of versioned files

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

Parse the first line of a versioned file.

val 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 ...).

OCaml

Innovation. Community. Security.