Cobol_procedure.TypesRepresentation of COBOL procedure division after typechecking
Outcome of the typing of a part of the tree: Error () means that this part is ill-typed (the corresponding diagnostic is already reported), and is not analyzed any further.
Resolved reference to some 'a
val compare_resolved_reference :
'a 'ref_name. ('a -> 'a -> Ppx_deriving_runtime.int) ->
('ref_name -> 'ref_name -> Ppx_deriving_runtime.int) ->
('a, 'ref_name) resolved_reference ->
('a, 'ref_name) resolved_reference ->
Ppx_deriving_runtime.inttype 'a resolved_name =
('a, Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_loc) resolved_referenceval compare_resolved_name :
'a. ('a -> 'a -> Ppx_deriving_runtime.int) ->
'a resolved_name ->
'a resolved_name ->
Ppx_deriving_runtime.inttype 'a resolved_qualname =
('a, Cobol_ptree.qualname Cobol_common.Srcloc.TYPES.with_loc)
resolved_referenceval compare_resolved_qualname :
'a. ('a -> 'a -> Ppx_deriving_runtime.int) ->
'a resolved_qualname ->
'a resolved_qualname ->
Ppx_deriving_runtime.inttype data_reference = Cobol_data.Types.data_definition resolved_qualnameReference to a data item (field, renaming, condition-name, or index). References are compared by name, as in the parse tree.
val compare_data_reference :
data_reference ->
data_reference ->
Ppx_deriving_runtime.inttype record_reference = Cobol_data.Types.record resolved_nameReference to a record in the procedure division. Like data_reference, these are compared by name, as in the parse tree
val compare_record_reference :
record_reference ->
record_reference ->
Ppx_deriving_runtime.inttype literal = Cobol_data.Types.literal_valuetype base_ident = | Address of address| Counter of Cobol_ptree.counter| InlineCall of inline_call| InlineInvoke of inline_invocation| ObjectView of object_view| ObjectRef of Cobol_ptree.object_ref| QualIdent of qualidentIdentifiers without reference modification. Literals are not identifiers: they do not refer to any data item, and are represented by their Cobol_data value (see or_ident).
Identifiers, with a possible reference modification.
Either an identifier, or the value of a literal (e.g, literal or_ident), which is Error () for an invalid literal.
and ident_or_alphanum = Cobol_data.Types.alphanum_value or_identand ident_or_intlit = Cobol_data.Types.integer_value or_identand scalar = | ScalarIdent of ident| ScalarLiteral of literal or_error| LengthOf of ident_or_literaland expr = | Atom of scalar| Unop of Cobol_ptree.unop * expr Cobol_common.Srcloc.TYPES.with_loc| Binop of expr Cobol_common.Srcloc.TYPES.with_loc
* Cobol_ptree.binop
* expr Cobol_common.Srcloc.TYPES.with_locand inline_call = | CallFunc of {func : Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_loc;args : effective_arg list;}| CallGenericIntrinsic of {func : Cobol_ptree.intrinsic_name Cobol_common.Srcloc.TYPES.with_loc;args : effective_arg list;}| CallTrim of {arg : effective_arg;tip : Cobol_ptree.trimming_tip option;}| CallLength of {arg : ident_or_nonnum;physical : bool;}| CallNumvalC of ident_or_nonnum list| CallLocaleDate of locale_func_args| CallLocaleTime of locale_func_args| CallLocaleTimeFromSeconds of locale_func_args| CallFormattedDatetime of formatted_func_args| CallFormattedTime of formatted_func_argsand formatted_func_args = {formatted_func_args : effective_arg list;formatted_func_system_offset : bool;}and locale_func_args = {locale_func_args : effective_arg;locale_func_locale : Cobol_ptree.qualname option;}and qualident = {ident_data_ref : data_reference;ident_subscripts : subscript Cobol_common.Srcloc.TYPES.with_loc list;}and subscript = | SubSAll| SubSExpr of expr Cobol_common.Srcloc.TYPES.with_loc| SubSIdx of Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_loc
* Cobol_data.Types.integer_valuerelative index, with its signed offset LATER: The index name should be resolved with a special index name lookup that is currently not implemented. We simply keep the parsed name for now.
*)and refmod = {refmod_left : expr Cobol_common.Srcloc.TYPES.with_loc;refmod_length : expr Cobol_common.Srcloc.TYPES.with_loc option;}and inline_invocation = {invoke_class : ident;invoke_meth : literal or_error;invoke_args : effective_arg list;}val compare_base_ident : base_ident -> base_ident -> Ppx_deriving_runtime.intval compare_ident_or_alphanum :
ident_or_alphanum ->
ident_or_alphanum ->
Ppx_deriving_runtime.intval compare_ident_or_intlit :
ident_or_intlit ->
ident_or_intlit ->
Ppx_deriving_runtime.intval compare_ident_or_literal :
ident_or_literal ->
ident_or_literal ->
Ppx_deriving_runtime.intval compare_ident_or_nonnum :
ident_or_nonnum ->
ident_or_nonnum ->
Ppx_deriving_runtime.intval compare_ident_or_strlit :
ident_or_strlit ->
ident_or_strlit ->
Ppx_deriving_runtime.intval compare_inline_call :
inline_call ->
inline_call ->
Ppx_deriving_runtime.intval compare_formatted_func_args :
formatted_func_args ->
formatted_func_args ->
Ppx_deriving_runtime.intval compare_locale_func_args :
locale_func_args ->
locale_func_args ->
Ppx_deriving_runtime.intval compare_effective_arg :
effective_arg ->
effective_arg ->
Ppx_deriving_runtime.intval compare_inline_invocation :
inline_invocation ->
inline_invocation ->
Ppx_deriving_runtime.intval compare_object_view :
object_view ->
object_view ->
Ppx_deriving_runtime.inttype condition = | Expr of expr Cobol_common.Srcloc.TYPES.with_locexpression used as a condition
*)| Relation of expr Cobol_common.Srcloc.TYPES.with_loc
* Cobol_ptree.relop
* expr Cobol_common.Srcloc.TYPES.with_loce <relop> e'*)
| ClassCond of expr Cobol_common.Srcloc.TYPES.with_loc * Cobol_ptree.class_class condition
*)| SignCond of expr Cobol_common.Srcloc.TYPES.with_loc * Cobol_ptree.signze POSITIVE/NEGATIVE/ZERO*)
| Omitted of expr Cobol_common.Srcloc.TYPES.with_locc OMITTED*)
| Not of condition or_error Cobol_common.Srcloc.TYPES.with_locNOT c*)
| Combined of condition or_error Cobol_common.Srcloc.TYPES.with_loc
* Cobol_ptree.logop
* condition or_error Cobol_common.Srcloc.TYPES.with_locc <AND/OR> c'*)
Expanded conditions, where all the implied subjects and relational operators of abbreviated conditions are made explicit. Sub-conditions are Error () when they could not be expanded (e.g, missing subject).
type rounded_ident =
Cobol_procedure__.Procedure_terms.ident Cobol_ptree.roundedval compare_rounded_ident :
rounded_ident ->
rounded_ident ->
Ppx_deriving_runtime.inttype rounded_idents =
Cobol_procedure__.Procedure_terms.ident Cobol_ptree.rounded_listval compare_rounded_idents :
rounded_idents ->
rounded_idents ->
Ppx_deriving_runtime.inttype position = | LinePosition of Cobol_data.Types.integer_value
Cobol_procedure__.Procedure_terms.or_ident| ColumnPosition of Cobol_data.Types.integer_value
Cobol_procedure__.Procedure_terms.or_ident| LineColumnPosition of Cobol_data.Types.integer_value
Cobol_procedure__.Procedure_terms.or_ident
* Cobol_data.Types.integer_value Cobol_procedure__.Procedure_terms.or_ident| CompoundPosition of Cobol_data.Types.integer_value
Cobol_procedure__.Procedure_terms.or_identtype using_arg_default = | ArgDefaultOmitted| ArgDefault of Cobol_procedure__.Procedure_terms.expr
Cobol_common.Srcloc.TYPES.with_locval compare_using_arg_default :
using_arg_default ->
using_arg_default ->
Ppx_deriving_runtime.inttype using_reference_arg = | ArgRefOmitted| ArgRef of Cobol_procedure__.Procedure_terms.scalar
Cobol_common.Srcloc.TYPES.with_locval compare_using_reference_arg :
using_reference_arg ->
using_reference_arg ->
Ppx_deriving_runtime.inttype call_using_clause = | CallUsingDefault of using_arg_default Cobol_common.Srcloc.TYPES.with_loc
Cobol_ptree.nel| CallUsingByReference of using_reference_arg Cobol_common.Srcloc.TYPES.with_loc
Cobol_ptree.nel| CallUsingByContent of Cobol_procedure__.Procedure_terms.expr
Cobol_common.Srcloc.TYPES.with_loc
Cobol_ptree.nel| CallUsingByValue of Cobol_procedure__.Procedure_terms.expr
Cobol_common.Srcloc.TYPES.with_loc
Cobol_ptree.nelval compare_call_using_clause :
call_using_clause ->
call_using_clause ->
Ppx_deriving_runtime.intval compare_arg_passing_style :
arg_passing_style ->
arg_passing_style ->
Ppx_deriving_runtime.inttype procedure_arg = {arg_name_ref : (Cobol_data.Types.record,
Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_loc)
Cobol_procedure__.Procedure_terms.resolved_reference;arg_passing_style : arg_passing_style;}Formal argument in PROCEDURE DIVISION USING or ENTRY USING
val compare_procedure_arg :
procedure_arg ->
procedure_arg ->
Ppx_deriving_runtime.inttype retry_clause = | RetryNTimes of Cobol_procedure__.Procedure_terms.expr
Cobol_common.Srcloc.TYPES.with_loc| RetryForNSeconds of Cobol_procedure__.Procedure_terms.expr
Cobol_common.Srcloc.TYPES.with_loc| RetryForeverval compare_retry_clause :
retry_clause ->
retry_clause ->
Ppx_deriving_runtime.inttype mcs_command_operands = {mcs_command_kind : Cobol_ptree.mcs_kind;mcs_command_target : Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_loc;mcs_command_key : Cobol_data.Types.alphanum_value
Cobol_procedure__.Procedure_terms.or_ident
option;}val compare_mcs_command_operands :
mcs_command_operands ->
mcs_command_operands ->
Ppx_deriving_runtime.inttype write_target = | WriteTargetName of (Cobol_data.Types.data_definition,
Cobol_ptree.qualname Cobol_common.Srcloc.TYPES.with_loc)
Cobol_procedure__.Procedure_terms.resolved_reference| WriteTargetFile of Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_locval compare_write_target :
write_target ->
write_target ->
Ppx_deriving_runtime.inttype basic_arithmetic_operands = | ArithSimple of {operands : Cobol_procedure__.Procedure_terms.scalar list;targets : rounded_idents;}| ArithGiving of {leading_operands : Cobol_procedure__.Procedure_terms.scalar list;base_operand : Cobol_procedure__.Procedure_terms.scalar;targets : rounded_idents;}| ArithCorresponding of {source : (Cobol_data.Types.data_definition,
Cobol_ptree.qualname Cobol_common.Srcloc.TYPES.with_loc)
Cobol_procedure__.Procedure_terms.resolved_reference;target : rounded_ident;}val compare_basic_arithmetic_operands :
basic_arithmetic_operands ->
basic_arithmetic_operands ->
Ppx_deriving_runtime.inttype divide_operands = | DivideInto of {divisor : Cobol_procedure__.Procedure_terms.scalar;dividends : rounded_idents;}| DivideGiving of {divisor : Cobol_procedure__.Procedure_terms.scalar;dividend : Cobol_procedure__.Procedure_terms.scalar;giving : rounded_idents;into : bool;remainder : Cobol_procedure__.Procedure_terms.ident option;}val compare_divide_operands :
divide_operands ->
divide_operands ->
Ppx_deriving_runtime.inttype selection_range = {sel_range_negated : bool;sel_range_start : Cobol_procedure__.Procedure_terms.expr
Cobol_common.Srcloc.TYPES.with_loc;sel_range_stop : Cobol_procedure__.Procedure_terms.expr
Cobol_common.Srcloc.TYPES.with_loc;sel_range_alphabet : Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_loc option;}val compare_selection_range :
selection_range ->
selection_range ->
Ppx_deriving_runtime.inttype selection_subject = | SubjectValue of Cobol_procedure__.Procedure_terms.expr
Cobol_common.Srcloc.TYPES.with_loc| SubjectCond of Cobol_procedure__.Procedure_terms.condition| SubjectConst of boolval compare_selection_subject :
selection_subject ->
selection_subject ->
Ppx_deriving_runtime.inttype selection_object = | SelCond of Cobol_procedure__.Procedure_terms.condition| SelValue of {negated : bool;value : Cobol_procedure__.Procedure_terms.expr
Cobol_common.Srcloc.TYPES.with_loc;}| SelRange of selection_range| SelConst of bool| SelAnyval compare_selection_object :
selection_object ->
selection_object ->
Ppx_deriving_runtime.inttype multiply_operands = | MultiplyBy of {multiplier : Cobol_procedure__.Procedure_terms.scalar;multiplicand : rounded_idents;}| MultiplyGiving of {multiplier : Cobol_procedure__.Procedure_terms.scalar;multiplicand : Cobol_procedure__.Procedure_terms.scalar;targets : rounded_idents;}val compare_multiply_operands :
multiply_operands ->
multiply_operands ->
Ppx_deriving_runtime.inttype raise_operand = | RaiseIdent of Cobol_procedure__.Procedure_terms.ident| RaiseException of Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_locval compare_raise_operand :
raise_operand ->
raise_operand ->
Ppx_deriving_runtime.inttype raising = | RaisingIdent of Cobol_procedure__.Procedure_terms.ident| RaisingException of Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_loc| RaisingLastExceptionval compare_read_lock_behavior :
read_lock_behavior ->
read_lock_behavior ->
Ppx_deriving_runtime.inttype search_condition = | IsEqual of {data_item : Cobol_procedure__.Procedure_terms.qualident;condition : Cobol_procedure__.Procedure_terms.expr
Cobol_common.Srcloc.TYPES.with_loc;}| Cond of Cobol_procedure__.Procedure_terms.qualidentval compare_search_condition :
search_condition ->
search_condition ->
Ppx_deriving_runtime.inttype advancing_phrase = | AdvancingLines of {stage : Cobol_ptree.stage;lines : Cobol_data.Types.integer_value
Cobol_procedure__.Procedure_terms.or_ident;ambiguous : bool;}| AdvancingPage of {stage : Cobol_ptree.stage;}val compare_advancing_phrase :
advancing_phrase ->
advancing_phrase ->
Ppx_deriving_runtime.intval compare_set_locale_source :
set_locale_source ->
set_locale_source ->
Ppx_deriving_runtime.inttype start_position = | StartPositionFirst| StartPositionLast| StartPositionKey of {operator : Cobol_ptree.relop;name : (Cobol_data.Types.data_definition,
Cobol_ptree.qualname Cobol_common.Srcloc.TYPES.with_loc)
Cobol_procedure__.Procedure_terms.resolved_reference;length : Cobol_procedure__.Procedure_terms.expr
Cobol_common.Srcloc.TYPES.with_loc
option;}val compare_start_position :
start_position ->
start_position ->
Ppx_deriving_runtime.inttype string_delimiter = | StringDelimiter of Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident| StringDelimiterSizeval compare_string_delimiter :
string_delimiter ->
string_delimiter ->
Ppx_deriving_runtime.inttype string_source = {string_source : Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident;string_delimiter : string_delimiter option;}val compare_string_source :
string_source ->
string_source ->
Ppx_deriving_runtime.inttype unstring_delimiter = {unstring_delimiter : Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident;unstring_delimiter_by_all : bool;}val compare_unstring_delimiter :
unstring_delimiter ->
unstring_delimiter ->
Ppx_deriving_runtime.intval compare_unstring_target :
unstring_target ->
unstring_target ->
Ppx_deriving_runtime.inttype screen_attribute_clause = | Bell| Blink| Highlight| Lowlight| ReverseVideo| Underline| ForegroundColor of Cobol_data.Types.integer_value
Cobol_procedure__.Procedure_terms.or_ident| BackgroundColor of Cobol_data.Types.integer_value
Cobol_procedure__.Procedure_terms.or_identval compare_screen_attribute_clause :
screen_attribute_clause ->
screen_attribute_clause ->
Ppx_deriving_runtime.inttype sort_spec = {sort_key_direction : Cobol_ptree.sort_direction;sort_key_names : (Cobol_data.Types.data_definition,
Cobol_ptree.qualname Cobol_common.Srcloc.TYPES.with_loc)
Cobol_procedure__.Procedure_terms.resolved_reference
list;}type allocate_kind = | AllocateCharacters of Cobol_procedure__.Procedure_terms.expr
Cobol_common.Srcloc.TYPES.with_loc| AllocateDataItem of (Cobol_data.Types.data_definition,
Cobol_ptree.qualname Cobol_common.Srcloc.TYPES.with_loc)
Cobol_procedure__.Procedure_terms.resolved_referenceval compare_allocate_kind :
allocate_kind ->
allocate_kind ->
Ppx_deriving_runtime.inttype allocate_stmt = {allocate_kind : allocate_kind;allocate_initialized : bool;allocate_returning : Cobol_procedure__.Procedure_terms.ident
Cobol_common.Srcloc.TYPES.with_loc
option;}val compare_allocate_stmt :
allocate_stmt ->
allocate_stmt ->
Ppx_deriving_runtime.inttype entry_stmt = | EntrySimple of string Cobol_common.Srcloc.TYPES.with_loc| EntryUsing of {entry_name : string Cobol_common.Srcloc.TYPES.with_loc;entry_using : Cobol_procedure__.Procedure_operands.procedure_arg
Cobol_common.Srcloc.TYPES.with_loc
list;}| EntryForGoTo of string Cobol_common.Srcloc.TYPES.with_locval compare_entry_stmt : entry_stmt -> entry_stmt -> Ppx_deriving_runtime.inttype returning = | ReturningScalar of Cobol_procedure__.Procedure_terms.scalar| ReturningAddress of Cobol_procedure__.Procedure_terms.qualident| ReturningInt of {value : (Cobol_data.Types.literal_value, unit) Stdlib.result;size : (Cobol_data.Types.literal_value, unit) Stdlib.result option;}type program_exit_status = | ExitDefault| ExitReturning of returning| ExitRaising of Cobol_procedure__.Procedure_operands.raisingval compare_program_exit_status :
program_exit_status ->
program_exit_status ->
Ppx_deriving_runtime.inttype exit_stmt = | ExitSimple| ExitProgram of program_exit_status| ExitMethod of Cobol_procedure__.Procedure_operands.raising option| ExitFunction of Cobol_procedure__.Procedure_operands.raising option| ExitPerform of bool| ExitParagraph| ExitSectiontype init_replacing = {init_replacing_category : Cobol_ptree.init_data_category;init_replacing_replacement_item : Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident;}val compare_init_replacing :
init_replacing ->
init_replacing ->
Ppx_deriving_runtime.inttype initialize_stmt = {init_items : Cobol_procedure__.Procedure_terms.ident list;init_filler : bool;init_category : Cobol_ptree.init_category option;init_replacings : init_replacing list;init_to_default : bool;}val compare_initialize_stmt :
initialize_stmt ->
initialize_stmt ->
Ppx_deriving_runtime.inttype invoke_stmt = {invoke_target : Cobol_procedure__.Procedure_terms.ident;invoke_method : Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident;invoke_using : Cobol_procedure__.Procedure_operands.call_using_clause list;invoke_returning : Cobol_procedure__.Procedure_terms.ident
Cobol_common.Srcloc.TYPES.with_loc
option;}val compare_invoke_stmt :
invoke_stmt ->
invoke_stmt ->
Ppx_deriving_runtime.inttype inspect_reference =
Cobol_data.Types.literal_value Cobol_procedure__.Procedure_terms.or_ident
Cobol_ptree.nelval compare_inspect_reference :
inspect_reference ->
inspect_reference ->
Ppx_deriving_runtime.inttype inspect_where = Cobol_ptree.inspect_direction * inspect_referenceval compare_inspect_where :
inspect_where ->
inspect_where ->
Ppx_deriving_runtime.inttype tallying_spec = {tallying_item : Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident;tallying_where : inspect_where list;}val compare_tallying_spec :
tallying_spec ->
tallying_spec ->
Ppx_deriving_runtime.inttype tallying_clause = | TallyingCharacters of inspect_where list| TallyingRange of Cobol_ptree.tallying_range * tallying_spec listval compare_tallying_clause :
tallying_clause ->
tallying_clause ->
Ppx_deriving_runtime.inttype tallying = {tallying_target : Cobol_procedure__.Procedure_terms.qualident;tallying_clauses : tallying_clause Cobol_common.Srcloc.TYPES.with_loc list;}type replacing_range_spec = {replacing_item : Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident;replacing_by : Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident;replacing_where : inspect_where list;}val compare_replacing_range_spec :
replacing_range_spec ->
replacing_range_spec ->
Ppx_deriving_runtime.inttype replacing_clause = | ReplacingCharacters of {replacement : Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident;where : inspect_where list;}| ReplacingRange of Cobol_ptree.replacing_range * replacing_range_spec listval compare_replacing_clause :
replacing_clause ->
replacing_clause ->
Ppx_deriving_runtime.inttype replacing = replacing_clause Cobol_common.Srcloc.TYPES.with_loctype converting = {converting_from : Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident;converting_to : Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident;converting_where : inspect_where list;}val compare_converting : converting -> converting -> Ppx_deriving_runtime.inttype inspect_spec = | InspectTallying of tallying list| InspectReplacing of replacing list| InspectBoth of tallying list * replacing list| InspectConverting of convertingval compare_inspect_spec :
inspect_spec ->
inspect_spec ->
Ppx_deriving_runtime.inttype inspect_stmt = {inspect_item : Cobol_procedure__.Procedure_terms.ident;inspect_spec : inspect_spec;}val compare_inspect_stmt :
inspect_stmt ->
inspect_stmt ->
Ppx_deriving_runtime.inttype merge_stmt = {merge_file : Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_loc;merge_keys : sort_spec list;merge_collating : Cobol_ptree.alphabet_specification option;merge_using : Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_loc list;merge_target : Cobol_ptree.merge_or_sort_target;}val compare_merge_stmt : merge_stmt -> merge_stmt -> Ppx_deriving_runtime.inttype open_phrase = {open_mode : Cobol_ptree.open_mode;open_sharing : Cobol_ptree.sharing_mode option;open_retry : Cobol_procedure__.Procedure_operands.retry_clause option;open_files : Cobol_ptree.named_file_option list;}val compare_open_phrase :
open_phrase ->
open_phrase ->
Ppx_deriving_runtime.inttype open_stmt = open_phrase listtype release_stmt = {release_item : (Cobol_data.Types.data_definition,
Cobol_ptree.qualname Cobol_common.Srcloc.TYPES.with_loc)
Cobol_procedure__.Procedure_terms.resolved_reference;release_from : Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident
option;}val compare_release_stmt :
release_stmt ->
release_stmt ->
Ppx_deriving_runtime.intval compare_message_ending_indicator :
message_ending_indicator ->
message_ending_indicator ->
Ppx_deriving_runtime.inttype send_operands = | SendSimple of {}| SendWith of {from : Cobol_procedure__.Procedure_terms.ident option;ending_indicator : message_ending_indicator;advancing : Cobol_procedure__.Procedure_operands.advancing_phrase option;replace : bool;}val compare_send_operands :
send_operands ->
send_operands ->
Ppx_deriving_runtime.inttype send_stmt = {send_name : Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_loc;send_operands : send_operands;}type set_switch_spec = {set_switch_targets : Cobol_procedure__.Procedure_terms.ident list;set_switch_value : Cobol_ptree.on_off;}val compare_set_switch_spec :
set_switch_spec ->
set_switch_spec ->
Ppx_deriving_runtime.intval compare_set_condition_spec :
set_condition_spec ->
set_condition_spec ->
Ppx_deriving_runtime.inttype set_stmt = | SetAmbiguous of {targets : Cobol_procedure__.Procedure_terms.ident list;set_method : Cobol_ptree.set_ambiguous_method;value : Cobol_procedure__.Procedure_terms.expr
Cobol_common.Srcloc.TYPES.with_loc;}| SetSwitch of set_switch_spec list| SetCondition of set_condition_spec list| SetEntry of {targets : Cobol_procedure__.Procedure_terms.ident list;value : Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident;}| SetAttribute of {name : Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_loc;attribute_switches : Cobol_ptree.set_attribute_switch list;}| SetSaveLocale of {target : Cobol_procedure__.Procedure_terms.ident;locale : Cobol_ptree.set_save_locale;}| SetLocale of {target : Cobol_ptree.set_locale_target;source : Cobol_procedure__.Procedure_operands.set_locale_source;}| SetSavedException| SetFloatContent of {targets : Cobol_procedure__.Procedure_terms.ident list;content : Cobol_ptree.float_content;sign : Cobol_ptree.sign option;}| SetEnvironment of {variable : Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident;value : Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident;}type sort_stmt = | SortFile of {file : Cobol_ptree.qualident;keys : sort_spec list;duplicate_in_order : bool;collating : Cobol_ptree.alphabet_specification option;source : Cobol_ptree.sort_source;target : Cobol_ptree.merge_or_sort_target;}| SortTable of {table : Cobol_procedure__.Procedure_terms.qualident;keys : sort_spec list;duplicate_in_order : bool;collating : Cobol_ptree.alphabet_specification option;}type stop_arg = | StopWithQualIdent of Cobol_procedure__.Procedure_terms.qualident
Cobol_common.Srcloc.TYPES.with_loc| StopWithLiteral of (Cobol_data.Types.literal_value, unit) Stdlib.result
Cobol_common.Srcloc.TYPES.with_loctype stop_run_status = {status_kind : Cobol_ptree.status_kind;status_value : Cobol_procedure__.Procedure_terms.scalar option;}val compare_stop_run_status :
stop_run_status ->
stop_run_status ->
Ppx_deriving_runtime.intval compare_stop_run_return :
stop_run_return ->
stop_run_return ->
Ppx_deriving_runtime.inttype stop_stmt = | StopArg of stop_arg option| StopRun of stop_run_return option| StopError| StopThread of Cobol_procedure__.Procedure_terms.qualident optiontype transform_stmt = {transform_ident : Cobol_procedure__.Procedure_terms.ident
Cobol_common.Srcloc.TYPES.with_loc;transform_from : Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident
Cobol_common.Srcloc.TYPES.with_loc;transform_to : Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident
Cobol_common.Srcloc.TYPES.with_loc;}val compare_transform_stmt :
transform_stmt ->
transform_stmt ->
Ppx_deriving_runtime.inttype goto_stmt = | GoToSimple of {}| GoToDepending of {targets : Cobol_ptree.procedure_name Cobol_common.Srcloc.TYPES.with_loc
Cobol_ptree.nel;depending_on : Cobol_procedure__.Procedure_terms.ident;}| GoToEntry of {targets : string Cobol_common.Srcloc.TYPES.with_loc Cobol_ptree.nel;depending_on : Cobol_procedure__.Procedure_terms.ident option;}type handler = statementsand evaluate_stmt = {eval_subjects : (Cobol_procedure__.Procedure_operands.selection_subject, unit)
Stdlib.result
Cobol_common.Srcloc.TYPES.with_loc
list;eval_branches : evaluate_branch list;eval_otherwise : statements;}and evaluate_branch = {eval_selection : (Cobol_procedure__.Procedure_operands.selection_object, unit)
Stdlib.result
Cobol_common.Srcloc.TYPES.with_loc
list
list;eval_actions : statements;}and perform_target_stmt = {perform_target : Cobol_ptree.procedure_range;perform_mode : perform_mode option;}and perform_inline_stmt = {perform_inline_mode : perform_mode option;perform_statements : statements;}and perform_mode = | PerformNTimes of Cobol_data.Types.integer_value
Cobol_procedure__.Procedure_terms.or_ident| PerformUntil of {with_test : Cobol_ptree.stage option;until : (Cobol_procedure__.Procedure_terms.condition, unit) Stdlib.result
Cobol_common.Srcloc.TYPES.with_loc
option;}| PerformVarying of {with_test : Cobol_ptree.stage option;varying : varying_phrase Cobol_common.Srcloc.TYPES.with_loc;after : varying_phrase Cobol_common.Srcloc.TYPES.with_loc list;}| PerformForeverand varying_phrase = {varying_ident : Cobol_procedure__.Procedure_terms.ident;varying_from : Cobol_procedure__.Procedure_terms.scalar;varying_by : Cobol_procedure__.Procedure_terms.scalar option;varying_until : (Cobol_procedure__.Procedure_terms.condition, unit)
Stdlib.result
Cobol_common.Srcloc.TYPES.with_loc;}and search_stmt = {search_item : (Cobol_data.Types.data_definition,
Cobol_ptree.qualname Cobol_common.Srcloc.TYPES.with_loc)
Cobol_procedure__.Procedure_terms.resolved_reference;search_varying : Cobol_procedure__.Procedure_terms.ident option;search_at_end : handler;search_when_clauses : search_when_clause Cobol_common.Srcloc.TYPES.with_loc
list;}and search_when_clause = {search_when_cond : (Cobol_procedure__.Procedure_terms.condition, unit)
Stdlib.result
Cobol_common.Srcloc.TYPES.with_loc;search_when_stmts : statements;}and search_all_stmt = {search_all_item : (Cobol_data.Types.data_definition,
Cobol_ptree.qualname Cobol_common.Srcloc.TYPES.with_loc)
Cobol_procedure__.Procedure_terms.resolved_reference;search_all_at_end : handler;search_all_conditions : Cobol_procedure__.Procedure_operands.search_condition
list;search_all_action : statements;}and if_stmt = {condition : (Cobol_procedure__.Procedure_terms.condition, unit) Stdlib.result
Cobol_common.Srcloc.TYPES.with_loc;then_branch : statements;else_branch : statements;}and accept_stmt = | AcceptGeneric of Cobol_procedure__.Procedure_terms.ident
Cobol_common.Srcloc.TYPES.with_loc| AcceptFromDevice of {item : Cobol_procedure__.Procedure_terms.ident
Cobol_common.Srcloc.TYPES.with_loc;device_item : Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_loc;}| AcceptTemporal of {item : Cobol_procedure__.Procedure_terms.ident
Cobol_common.Srcloc.TYPES.with_loc;date_time : Cobol_ptree.date_time;}| AcceptMisc of {item : Cobol_procedure__.Procedure_terms.ident
Cobol_common.Srcloc.TYPES.with_loc;misc : Cobol_ptree.accept_misc;}| AcceptMsgCount of Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_loc| AcceptScreen of {item : Cobol_procedure__.Procedure_terms.ident
Cobol_common.Srcloc.TYPES.with_loc;clauses : accept_clause Cobol_common.Srcloc.TYPES.with_loc list;on_exception : dual_handler;}| AcceptFromEnv of {item : Cobol_procedure__.Procedure_terms.ident
Cobol_common.Srcloc.TYPES.with_loc;env_item : Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident
Cobol_common.Srcloc.TYPES.with_loc
option;on_exception : dual_handler;}| AcceptFromArg of {item : Cobol_procedure__.Procedure_terms.ident
Cobol_common.Srcloc.TYPES.with_loc;on_exception : dual_handler;}| AcceptFromCmdLine of {item : Cobol_procedure__.Procedure_terms.ident
Cobol_common.Srcloc.TYPES.with_loc;on_exception : dual_handler;}and accept_clause = | AcceptAt of Cobol_procedure__.Procedure_operands.position| AcceptFromCRT| AcceptModeBlock| AcceptWith of accept_with_clause Cobol_common.Srcloc.TYPES.with_loc listand accept_with_clause = | AcceptAttribute of screen_attribute_clause| AcceptAuto| AcceptFull| AcceptGrid| AcceptLeftLine| AcceptOverLine| AcceptPromptCharacter of Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident
option| AcceptRequired| AcceptSecure| AcceptSize of Cobol_data.Types.integer_value
Cobol_procedure__.Procedure_terms.or_ident| AcceptControl of Cobol_procedure__.Procedure_terms.ident| AcceptTimeout| AcceptLeftJustify| AcceptRightJustify| AcceptSpaceFill| AcceptTrailingSign| AcceptUpdate| AcceptUpper| AcceptLower| AcceptZeroFilland display_stmt = {display_items_clauses : display_items_clauses list;no_advancing : bool;on_exception : dual_handler;}and display_items_clauses = {display_items : Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident
Cobol_common.Srcloc.TYPES.with_loc
list;display_clauses : display_clause Cobol_common.Srcloc.TYPES.with_loc list;}and display_clause = | DisplayAt of Cobol_procedure__.Procedure_operands.position| DisplayUpon of Cobol_ptree.display_target Cobol_common.Srcloc.TYPES.with_loc| DisplayModeIsBlock| DisplayWith of display_with_clause Cobol_common.Srcloc.TYPES.with_loc listand display_with_clause = | DisplayAttribute of screen_attribute_clause| DisplayGrid| DisplayErase of Cobol_ptree.erase_clause| DisplayLeftLine| DisplayOverLine| DisplaySize of Cobol_data.Types.integer_value
Cobol_procedure__.Procedure_terms.or_ident| DisplayControl of Cobol_procedure__.Procedure_terms.ident| DisplayBlank of Cobol_ptree.blank_clauseand basic_arithmetic_stmt = {basic_arith_operands : Cobol_procedure__.Procedure_operands.basic_arithmetic_operands;basic_arith_on_size_error : dual_handler;}and compute_stmt = {compute_targets : Cobol_procedure__.Procedure_terms.ident
Cobol_ptree.rounded_list;compute_expr : Cobol_procedure__.Procedure_terms.expr
Cobol_common.Srcloc.TYPES.with_loc;compute_on_size_error : dual_handler;}and delete_stmt = {delete_targets : Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_loc;delete_retry : Cobol_procedure__.Procedure_operands.retry_clause option;delete_on_invalid_key : dual_handler;}and divide_stmt = {divide_operands : Cobol_procedure__.Procedure_operands.divide_operands;divide_on_size_error : dual_handler;}and multiply_stmt = {multiply_operands : Cobol_procedure__.Procedure_operands.multiply_operands;multiply_on_size_error : dual_handler;}and receive_stmt = {receive_name : Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_loc;receive_kind : Cobol_ptree.mcs_awaiting_item;receive_into : Cobol_procedure__.Procedure_terms.ident;receive_on_no_data : dual_handler;}and return_stmt = {return_file : Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_loc;return_into : Cobol_procedure__.Procedure_terms.ident
Cobol_common.Srcloc.TYPES.with_loc
option;return_at_end : dual_handler;}and rewrite_stmt = {rewrite_to : Cobol_procedure__.Procedure_operands.write_target;rewrite_from : Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident
option;rewrite_retry : Cobol_procedure__.Procedure_operands.retry_clause option;rewrite_lock : bool option;rewrite_invalid_key_handler : dual_handler;}and start_stmt = {start_file : Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_loc;start_position : Cobol_procedure__.Procedure_operands.start_position option;start_on_invalid_key : dual_handler;}and string_stmt = {string_sources : Cobol_procedure__.Procedure_operands.string_source list;string_target : Cobol_procedure__.Procedure_terms.ident;string_pointer : Cobol_procedure__.Procedure_terms.ident option;string_on_overflow : dual_handler;}and unstring_stmt = {unstring_source : Cobol_procedure__.Procedure_terms.ident;unstring_delimiters : Cobol_procedure__.Procedure_operands.unstring_delimiter
list;unstring_targets : Cobol_procedure__.Procedure_operands.unstring_target list;unstring_pointer : Cobol_procedure__.Procedure_terms.ident option;unstring_tallying : Cobol_procedure__.Procedure_terms.ident option;unstring_on_overflow : dual_handler;}and write_stmt = {write_to : Cobol_procedure__.Procedure_operands.write_target;write_from : Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident
option;write_advancing : Cobol_procedure__.Procedure_operands.advancing_phrase option;write_retry : Cobol_procedure__.Procedure_operands.retry_clause option;write_lock : bool option;write_error_handler : (Cobol_ptree.write_error * dual_handler) option;}and call_stmt = {call_static : bool;call_target : call_target;call_using : Cobol_procedure__.Procedure_operands.call_using_clause list;call_returning : Cobol_procedure__.Procedure_terms.ident
Cobol_common.Srcloc.TYPES.with_loc
option;call_error_handler : call_error_handler option;}and call_target = | CallGeneral of Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident| CallProto of {called : Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident
option;prototype : call_proto;}and read_stmt = {read_file : Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_loc;read_direction : Cobol_ptree.read_direction option;read_into : Cobol_procedure__.Procedure_terms.ident option;read_lock_behavior : Cobol_procedure__.Procedure_operands.read_lock_behavior
option;read_lock : bool option;read_key : (Cobol_data.Types.data_definition,
Cobol_ptree.qualname Cobol_common.Srcloc.TYPES.with_loc)
Cobol_procedure__.Procedure_terms.resolved_reference
option;read_error_handler : (Cobol_ptree.read_error * dual_handler) option;}and goback_stmt = {goback_raising : Cobol_procedure__.Procedure_operands.raising option;goback_returning : Cobol_data.Types.integer_value
Cobol_procedure__.Procedure_terms.or_ident
Cobol_common.Srcloc.TYPES.with_loc
option;}and statement = | Accept of accept_stmt| Add of basic_arithmetic_stmt| Allocate of allocate_stmt| Alter of Cobol_ptree.alter_stmt| Call of call_stmt| Cancel of Cobol_data.Types.literal_value
Cobol_procedure__.Procedure_terms.or_ident
list| Close of Cobol_ptree.close_stmt| Compute of compute_stmt| Continue| Delete of delete_stmt| Disable of Cobol_procedure__.Procedure_operands.mcs_command_operands| Display of display_stmt| Divide of divide_stmt| Enable of Cobol_procedure__.Procedure_operands.mcs_command_operands| Enter of Cobol_ptree.enter_stmt| Entry of entry_stmt| Evaluate of evaluate_stmt| ExecBlock of Cobol_ptree.exec_block| Exit of exit_stmt| Free of (Cobol_data.Types.data_definition,
Cobol_ptree.qualname Cobol_common.Srcloc.TYPES.with_loc)
Cobol_procedure__.Procedure_terms.resolved_reference
list| Generate of Cobol_ptree.qualname Cobol_common.Srcloc.TYPES.with_loc| GoTo of goto_stmt| GoBack of goback_stmt| If of if_stmt| Initialize of initialize_stmt| Initiate of Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_loc list| Inspect of inspect_stmt| Invoke of invoke_stmt| LoneGoTo| Merge of merge_stmt| Move of move_stmt| Multiply of multiply_stmt| NextSentence| Open of open_stmt| PerformTarget of perform_target_stmt| PerformInline of perform_inline_stmt| Purge of Cobol_ptree.name Cobol_common.Srcloc.TYPES.with_loc| Raise of Cobol_procedure__.Procedure_operands.raise_operand| Read of read_stmt| Receive of receive_stmt| Release of release_stmt| Resume of Cobol_ptree.resume_stmt| Return of return_stmt| Rewrite of rewrite_stmt| Search of search_stmt| SearchAll of search_all_stmt| Send of send_stmt| Set of set_stmt| Sort of sort_stmt| Start of start_stmt| Stop of stop_stmt| String of string_stmt| Subtract of basic_arithmetic_stmt| Suppress| Terminate of Cobol_ptree.terminate_stmt| Transform of transform_stmt| Unlock of Cobol_ptree.unlock_stmt| Unstring of unstring_stmt| Validate of Cobol_procedure__.Procedure_terms.ident list| Write of write_stmtand statements = statement Cobol_common.Srcloc.TYPES.with_loc listval compare_dual_handler :
dual_handler ->
dual_handler ->
Ppx_deriving_runtime.intval compare_evaluate_stmt :
evaluate_stmt ->
evaluate_stmt ->
Ppx_deriving_runtime.intval compare_evaluate_branch :
evaluate_branch ->
evaluate_branch ->
Ppx_deriving_runtime.intval compare_perform_target_stmt :
perform_target_stmt ->
perform_target_stmt ->
Ppx_deriving_runtime.intval compare_perform_inline_stmt :
perform_inline_stmt ->
perform_inline_stmt ->
Ppx_deriving_runtime.intval compare_perform_mode :
perform_mode ->
perform_mode ->
Ppx_deriving_runtime.intval compare_varying_phrase :
varying_phrase ->
varying_phrase ->
Ppx_deriving_runtime.intval compare_search_stmt :
search_stmt ->
search_stmt ->
Ppx_deriving_runtime.intval compare_search_when_clause :
search_when_clause ->
search_when_clause ->
Ppx_deriving_runtime.intval compare_search_all_stmt :
search_all_stmt ->
search_all_stmt ->
Ppx_deriving_runtime.intval compare_accept_stmt :
accept_stmt ->
accept_stmt ->
Ppx_deriving_runtime.intval compare_accept_clause :
accept_clause ->
accept_clause ->
Ppx_deriving_runtime.intval compare_accept_with_clause :
accept_with_clause ->
accept_with_clause ->
Ppx_deriving_runtime.intval compare_display_stmt :
display_stmt ->
display_stmt ->
Ppx_deriving_runtime.intval compare_display_items_clauses :
display_items_clauses ->
display_items_clauses ->
Ppx_deriving_runtime.intval compare_display_clause :
display_clause ->
display_clause ->
Ppx_deriving_runtime.intval compare_display_with_clause :
display_with_clause ->
display_with_clause ->
Ppx_deriving_runtime.intval compare_basic_arithmetic_stmt :
basic_arithmetic_stmt ->
basic_arithmetic_stmt ->
Ppx_deriving_runtime.intval compare_compute_stmt :
compute_stmt ->
compute_stmt ->
Ppx_deriving_runtime.intval compare_delete_stmt :
delete_stmt ->
delete_stmt ->
Ppx_deriving_runtime.intval compare_divide_stmt :
divide_stmt ->
divide_stmt ->
Ppx_deriving_runtime.intval compare_multiply_stmt :
multiply_stmt ->
multiply_stmt ->
Ppx_deriving_runtime.intval compare_receive_stmt :
receive_stmt ->
receive_stmt ->
Ppx_deriving_runtime.intval compare_return_stmt :
return_stmt ->
return_stmt ->
Ppx_deriving_runtime.intval compare_rewrite_stmt :
rewrite_stmt ->
rewrite_stmt ->
Ppx_deriving_runtime.intval compare_start_stmt : start_stmt -> start_stmt -> Ppx_deriving_runtime.intval compare_string_stmt :
string_stmt ->
string_stmt ->
Ppx_deriving_runtime.intval compare_unstring_stmt :
unstring_stmt ->
unstring_stmt ->
Ppx_deriving_runtime.intval compare_write_stmt : write_stmt -> write_stmt -> Ppx_deriving_runtime.intval compare_call_target :
call_target ->
call_target ->
Ppx_deriving_runtime.intval compare_call_proto : call_proto -> call_proto -> Ppx_deriving_runtime.intval compare_call_error_handler :
call_error_handler ->
call_error_handler ->
Ppx_deriving_runtime.intval compare_goback_stmt :
goback_stmt ->
goback_stmt ->
Ppx_deriving_runtime.intval compare_statements : statements -> handler -> Ppx_deriving_runtime.int