Project

General

Profile

« Previous | Next » 

Revision ca7ff3f7

Added by LĂ©lio Brun 7 months ago

reformatting

View differences:

src/backends/Ada/ada_printer.mli
3 3

  
4 4
type parameter_mode = AdaNoMode | AdaIn | AdaOut | AdaInOut
5 5

  
6
type kind_def = AdaType | AdaProcedure | AdaFunction | AdaPackageDecl | AdaPackageBody
6
type kind_def =
7
  | AdaType
8
  | AdaProcedure
9
  | AdaFunction
10
  | AdaPackageDecl
11
  | AdaPackageBody
7 12

  
8 13
type visibility = AdaNoVisibility | AdaPrivate | AdaLimitedPrivate
9 14

  
10
type ada_with = (bool * bool * (printer list) * (printer list)) option
15
type ada_with = (bool * bool * printer list * printer list) option
11 16

  
12 17
type ada_var_decl = parameter_mode * printer * printer * ada_with
13 18

  
14 19
type ada_local_decl =
15 20
  | AdaLocalVar of ada_var_decl
16
  | AdaLocalPackage of (printer * printer * ((printer*printer) list))
21
  | AdaLocalPackage of (printer * printer * (printer * printer) list)
17 22

  
18 23
type def_content =
19 24
  | AdaNoContent
20 25
  | AdaPackageContent of printer
21 26
  | AdaSimpleContent of printer
22 27
  | AdaVisibilityDefinition of visibility
23
  | AdaProcedureContent of ((ada_local_decl list list) * (printer list))
24
  | AdaRecord of (ada_var_decl list list)
25
  | AdaPackageInstanciation of (printer * ((printer*printer) list))
28
  | AdaProcedureContent of (ada_local_decl list list * printer list)
29
  | AdaRecord of ada_var_decl list list
30
  | AdaPackageInstanciation of (printer * (printer * printer) list)
26 31

  
27 32
val pp_integer_type : printer
33

  
28 34
val pp_float_type : printer
35

  
29 36
val pp_boolean_type : printer
30 37

  
31 38
val pp_clean_ada_identifier : formatter -> string -> unit
32
val pp_package_access : (printer*printer) -> printer
39

  
40
val pp_package_access : printer * printer -> printer
41

  
33 42
val pp_block : formatter -> printer list -> unit
43

  
34 44
val pp_oneline_comment : formatter -> string -> unit
45

  
35 46
val pp_with : visibility -> formatter -> printer -> unit
47

  
36 48
val pp_var_decl : ada_var_decl -> printer
37
val pp_access :  printer -> printer -> formatter -> unit
38
val pp_call : formatter -> (printer*(printer list list)) -> unit
49

  
50
val pp_access : printer -> printer -> formatter -> unit
51

  
52
val pp_call : formatter -> printer * printer list list -> unit
53

  
39 54
val pp_old : printer -> printer
55

  
40 56
val pp_adastring : printer -> printer
41 57

  
42
val pp_or : (printer list) -> printer
43
val pp_and : (printer list) -> printer
58
val pp_or : printer list -> printer
59

  
60
val pp_and : printer list -> printer
44 61

  
45 62
(* declaration printer *)
46 63
val pp_package : printer -> printer list -> bool -> formatter -> printer -> unit
47
val pp_package_instanciation : printer -> printer -> formatter -> (printer*printer) list -> unit
64

  
65
val pp_package_instanciation :
66
  printer -> printer -> formatter -> (printer * printer) list -> unit
67

  
48 68
val pp_type_decl : printer -> visibility -> printer
69

  
49 70
val pp_record : printer -> formatter -> ada_var_decl list list -> unit
50
val pp_procedure : printer -> (ada_var_decl list list) -> ada_with -> formatter -> def_content -> unit
51
val pp_predicate : printer -> (ada_var_decl list list) -> bool -> formatter -> (printer option) -> unit
71

  
72
val pp_procedure :
73
  printer ->
74
  ada_var_decl list list ->
75
  ada_with ->
76
  formatter ->
77
  def_content ->
78
  unit
79

  
80
val pp_predicate :
81
  printer ->
82
  ada_var_decl list list ->
83
  bool ->
84
  formatter ->
85
  printer option ->
86
  unit
52 87
(* Local function :
53 88

  
54
val pp_parameter_mode : formatter -> parameter_mode -> unit
55
val pp_kind_def : formatter -> kind_def -> unit
56
val pp_visibility : formatter -> visibility -> unit
57
val pp_var_decl_lists : formatter -> ada_var_decl list list -> unit
58
val pp_def_args : formatter -> ada_var_decl list list -> unit
59
val pp_def : formatter -> (kind_def*printer*(ada_var_decl list list)*(printer option)*def_content*(printer option)) -> unit
60
*)
89
   val pp_parameter_mode : formatter -> parameter_mode -> unit val pp_kind_def :
90
   formatter -> kind_def -> unit val pp_visibility : formatter -> visibility ->
91
   unit val pp_var_decl_lists : formatter -> ada_var_decl list list -> unit val
92
   pp_def_args : formatter -> ada_var_decl list list -> unit val pp_def :
93
   formatter -> (kind_def*printer*(ada_var_decl list list)*(printer
94
   option)*def_content*(printer option)) -> unit *)

Also available in: Unified diff