|
13 | 13 |
|
14 | 14 | module type MISC_SECTIONS = sig
|
15 | 15 | (* IDENTIFICATION_DIVISION *)
|
16 |
| - type informational_paragraphs [@@deriving show] |
17 |
| - type options_paragraph [@@deriving show] |
18 |
| - type environment_division [@@deriving show] |
| 16 | + type informational_paragraphs [@@deriving ord] |
| 17 | + val pp_informational_paragraphs : informational_paragraphs Fmt.t |
| 18 | + type options_paragraph [@@deriving ord] |
| 19 | + val pp_options_paragraph : options_paragraph Fmt.t |
| 20 | + type environment_division [@@deriving ord] |
| 21 | + val pp_environment_division : environment_division Fmt.t |
19 | 22 | end
|
20 | 23 |
|
21 | 24 | module type PICTURE = sig
|
22 |
| - type picture [@@deriving show] |
| 25 | + type picture [@@deriving show, ord] |
23 | 26 | end
|
24 | 27 |
|
25 | 28 | module type DATA_SECTIONS = sig
|
26 |
| - type working_storage_section [@@deriving show] |
27 |
| - type linkage_section [@@deriving show] |
28 |
| - type file_section [@@deriving show] |
29 |
| - type communication_section [@@deriving show] |
30 |
| - type local_storage_section [@@deriving show] |
31 |
| - type report_section [@@deriving show] |
32 |
| - type screen_section [@@deriving show] |
| 29 | + type working_storage_section [@@deriving ord] |
| 30 | + val pp_working_storage_section : working_storage_section Pretty.printer |
| 31 | + type linkage_section [@@deriving ord] |
| 32 | + val pp_linkage_section : linkage_section Pretty.printer |
| 33 | + type file_section [@@deriving ord] |
| 34 | + val pp_file_section : file_section Pretty.printer |
| 35 | + type communication_section [@@deriving ord] |
| 36 | + val pp_communication_section : communication_section Pretty.printer |
| 37 | + type local_storage_section [@@deriving ord] |
| 38 | + val pp_local_storage_section : local_storage_section Pretty.printer |
| 39 | + type report_section [@@deriving ord] |
| 40 | + val pp_report_section : report_section Pretty.printer |
| 41 | + type screen_section [@@deriving ord] |
| 42 | + val pp_screen_section : screen_section Pretty.printer |
33 | 43 | end
|
34 | 44 |
|
35 | 45 | module type DATA_DIVISION = sig
|
36 | 46 | (* NOTE: could become PROG_DIVISIONS if relevant *)
|
37 |
| - type data_division [@@deriving show] |
| 47 | + type data_division [@@deriving ord] |
| 48 | + val pp_data_division : data_division Pretty.printer |
38 | 49 | end
|
39 | 50 |
|
40 | 51 | module type STATEMENTS = sig
|
41 |
| - type statement [@@deriving show] |
42 |
| - type statements [@@deriving show] |
| 52 | + type statement [@@deriving ord] |
| 53 | + val pp_statement : statement Fmt.t |
| 54 | + type statements [@@deriving ord] |
| 55 | + val pp_statements : statements Fmt.t |
| 56 | + val pp_dump_statements : statements Fmt.t |
43 | 57 | end
|
44 | 58 |
|
45 | 59 | module type PROC_DIVISION = sig
|
46 |
| - type procedure_division [@@deriving show] |
| 60 | + type procedure_division [@@deriving ord] |
| 61 | + val pp_procedure_division : procedure_division Fmt.t |
47 | 62 | end
|
48 | 63 |
|
49 | 64 | module type COMPILATION_GROUP = sig
|
50 |
| - type compilation_group [@@deriving show] |
| 65 | + type compilation_group [@@deriving show, ord] |
51 | 66 | end
|
0 commit comments