Project

General

Profile

Download (1.93 KB) Statistics
| Branch: | Tag: | Revision:
1
open Format
2
open Misc_printer
3

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

    
6
type kind_def = AdaType | AdaProcedure | AdaFunction | AdaPackageDecl | AdaPackageBody
7

    
8
type visibility = AdaNoVisibility | AdaPrivate | AdaLimitedPrivate
9

    
10
type ada_var_decl = parameter_mode*printer*printer
11

    
12
type ada_local_decl =
13
  | AdaLocalVar of ada_var_decl
14
  | AdaLocalPackage of (printer * printer * ((printer*printer) list))
15

    
16
type def_content =
17
  | AdaNoContent
18
  | AdaPackageContent of printer
19
  | AdaVisibilityDefinition of visibility
20
  | AdaProcedureContent of ((ada_local_decl list list) * (printer list))
21
  | AdaRecord of (ada_var_decl list list)
22
  | AdaPackageInstanciation of (printer * ((printer*printer) list))
23

    
24

    
25
val pp_clean_ada_identifier : formatter -> string -> unit
26
val pp_package_access : (printer*printer) -> printer
27
val pp_block : formatter -> printer list -> unit
28
val pp_oneline_comment : formatter -> string -> unit
29
val pp_with : visibility -> formatter -> printer -> unit
30
val pp_var_decl : ada_var_decl -> printer
31
val pp_call : formatter -> (printer*(printer list list)) -> unit
32

    
33
(* declaration printer *)
34
val pp_package : printer -> printer list -> bool -> formatter -> printer -> unit
35
val pp_package_instanciation : printer -> printer -> formatter -> (printer*printer) list -> unit
36
val pp_type_decl : printer -> visibility -> printer
37
val pp_record : printer -> formatter -> ada_var_decl list list -> unit
38
val pp_procedure : printer -> (ada_var_decl list list) -> printer option -> formatter -> def_content -> unit
39
(* Local function :
40

    
41
val pp_parameter_mode : formatter -> parameter_mode -> unit
42
val pp_kind_def : formatter -> kind_def -> unit
43
val pp_visibility : formatter -> visibility -> unit
44
val pp_var_decl_lists : formatter -> ada_var_decl list list -> unit
45
val pp_def_args : formatter -> ada_var_decl list list -> unit
46
val pp_def : formatter -> (kind_def*printer*(ada_var_decl list list)*(printer option)*def_content*(printer option)) -> unit
47
*)
(10-10/12)