| 1 |
(**************************************************************************) |
| 2 |
(* *) |
| 3 |
(* Copyright 2016 MetaStack Solutions Ltd. *) |
| 4 |
(* *) |
| 5 |
(* All rights reserved. This file is distributed under the terms of the *) |
| 6 |
(* GNU Lesser General Public License version 2.1, with the special *) |
| 7 |
(* exception on linking described in the file LICENSE. *) |
| 8 |
(* *) |
| 9 |
(**************************************************************************) |
| 10 |
|
| 11 |
(** OPAM format variable interpolation processor *) |
| 12 |
|
| 13 |
val main: (string -> unit) -> (string -> unit) -> Lexing.lexbuf -> unit |
| 14 |
(** [main unquoted quoted lexbuf] fully processes the given lexbuf. Strings are |
| 15 |
applied to [unquoted] until a ["] or ["""] sequence is encountered when the |
| 16 |
content within the single or triple-quoted string is applied to [quoted] |
| 17 |
(note that the quote marks themselves are passed to [unquoted]). Within |
| 18 |
either string type, backslash is the escape character. *) |