aboutsummaryrefslogtreecommitdiff
path: root/lib/configuration/importConf.mli
blob: 3a8ae75ff5a18c39dd16942f78c19033ef6e55bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module Syntax = Syntax
module Table = ImportDataTypes.Table
module Path = ImportDataTypes.Path

val dummy_conf : Syntax.t

val root_table : Syntax.t -> Table.t
(** Get the root table, this table is the main table to load and each line in
    this table will be processed *)

val t_of_yojson : Yojson.Safe.t -> Syntax.t
val t_of_toml : Otoml.t -> (Syntax.t, string) result
val get_table_for_name : Syntax.t -> string option -> Table.t

val get_dependancies_for_table : Syntax.t -> Table.t -> Syntax.extern list
(** Get all the externals refered by the source *)

val print_path_expression : Path.t ImportExpression.T.t -> string

val expression_from_string :
  string -> (Path.t ImportExpression.T.t, string) result

val print_extern : Syntax.extern -> string