summaryrefslogtreecommitdiff
path: root/ocamltest/tsl_semantics.mli
blob: 385692f0a7f6fa5680738b78ce06872889e73cd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
(**************************************************************************)
(*                                                                        *)
(*                                 OCaml                                  *)
(*                                                                        *)
(*             Sebastien Hinderer, projet Gallium, INRIA Paris            *)
(*                                                                        *)
(*   Copyright 2016 Institut National de Recherche en Informatique et     *)
(*     en Automatique.                                                    *)
(*                                                                        *)
(*   All rights reserved.  This file is distributed under the terms of    *)
(*   the GNU Lesser General Public License version 2.1, with the          *)
(*   special exception on linking described in the file LICENSE.          *)
(*                                                                        *)
(**************************************************************************)

(* Interpretation of TSL blocks and operations on test trees *)

open Tsl_ast

val apply_modifiers : Environments.t -> string located -> Environments.t

val interpret_environment_statement :
  Environments.t -> Tsl_ast.environment_statement Tsl_ast.located ->
  Environments.t

val interpret_environment_statements :
  Environments.t -> Tsl_ast.environment_statement Tsl_ast.located list ->
  Environments.t

type test_tree =
  | Node of
    (Tsl_ast.environment_statement located list) *
    Tests.t *
    string located list *
    (test_tree list)

val test_trees_of_tsl_block :
  Tsl_ast.tsl_item list ->
  Tsl_ast.environment_statement located list * test_tree list

val test_trees_of_tsl_ast :
  Tsl_ast.t ->
  Tsl_ast.environment_statement located list * test_tree list

val tsl_ast_of_test_trees :
  Tsl_ast.environment_statement located list * test_tree list ->
  Tsl_ast.t

val tests_in_tree : test_tree -> Tests.TestSet.t

val tests_in_trees : test_tree list -> Tests.TestSet.t

val actions_in_test : Tests.t -> Actions.ActionSet.t

val actions_in_tests : Tests.TestSet.t -> Actions.ActionSet.t


val print_tsl_ast : compact:bool -> out_channel -> Tsl_ast.t -> unit