Debian Codegraph @

otherlibs/dune-site/src/plugins/meta_parser.mli

raw
1 type t =
2 { name : string option
3 ; entries : entry list
4 }
5
6 and entry =
7 | Comment of string
8 | Rule of rule
9 | Package of t
10
11 and rule =
12 { var : string
13 ; predicates : predicate list
14 ; action : action
15 ; value : string
16 }
17
18 and action =
19 | Set
20 | Add
21
22 and predicate =
23 | Pos of string
24 | Neg of string
25
26 module Parse : sig
27 val entries : Lexing.lexbuf -> int -> entry list -> entry list
28 end