Module Cobol_interp.Types

Fields

val pp_cob_field : Ppx_deriving_runtime.Format.formatter -> cob_field -> Ppx_deriving_runtime.unit
val show_cob_field : cob_field -> Ppx_deriving_runtime.string
type cob_field_handle = cob_field Cir_types.field
type cob_field_access = cob_field Cir_types.field_access

Records

type cob_record_handle = cob_record_data Cir_types.record_handle
and cob_record_data = {
  1. record_data_ptr : Ezlibcob.V1.U8.t Ezlibcob.V1.cptr;
  2. record_data_size : int;
}
val pp_cob_record_handle : Ppx_deriving_runtime.Format.formatter -> cob_record_handle -> Ppx_deriving_runtime.unit
val show_cob_record_handle : cob_record_handle -> Ppx_deriving_runtime.string
val pp_cob_record_data : Ppx_deriving_runtime.Format.formatter -> cob_record_data -> Ppx_deriving_runtime.unit
val show_cob_record_data : cob_record_data -> Ppx_deriving_runtime.string

Modules

and cob_module_memory = {
  1. module_ptr : Ezlibcob.V1.CobModule.t Ezlibcob.V1.cptr;
  2. module_globals : Ezlibcob.V1.CobGlobal.t Ezlibcob.V1.cptr;
  3. mutable module_initialized : bool;
}
val pp_cob_module_memory : Stdlib.Format.formatter -> 'a -> unit
val pp_module_handle : Ppx_deriving_runtime.Format.formatter -> (cob_field, cob_record_data, 'a) Cir_types.module_handle -> Ppx_deriving_runtime.unit

Builder & State

CIR builder with values that are managed by libcob.

Manager for the libcob-based CIR interpretation logic

and state = unit

The libcob-based CIR is purely imperative, so it's state is unit.

and condition_result = bool

Evaluating conditions directly provides us with a concrete result.

type evaluation_result = state Cir_logic.Types.evaluation_result

State, or else runtime errors

type options = {
  1. integer_literals : [ `numeric_display | `binary_when_small_enough ];
}

Options for the libcob-based CIR interpreter.

type Cir_builder.Types.unsupported_stuff +=
  1. | Literal of Cobol_data.Types.literal_value
  2. | Field_usage
  3. | Non_constant_size
type Cir_builder.Types.error +=
  1. | Invalid_compilation_group of {
    1. reason : [ `empty_group | `non_singleton_group ];
    }
  2. | Ezlibcob_build_error of {
    1. loc : Cobol_common.Srcloc.TYPES.srcloc option;
    2. error : Ezlibcob.V1.error;
    }
type Cir_logic.Types.runtime_operation +=
  1. | Module_cancellation
type Cir_logic.Types.runtime_error +=
  1. | Ezlibcob_runtime_error of Ezlibcob.V1.error
  2. | Invalid_field_type of {
    1. expected_descr : string;
    2. got : cob_field;
    }
  3. | Invalid_refmod of {
    1. what : [ `length of int | `offset ];
    2. got : int;
    3. expected_max : int;
    }
  4. | Module_reinitialzation of {
    1. module_name : string;
    }
  5. | Table_index_out_of_bounds of {
    1. index_given : int;
    2. index_min : int;
    3. index_max : int;
    }
type errors =
  1. | Initialization_errors of Cir_builder.Types.errors
  2. | Runtime_errors of Cir_logic.Types.localized_runtime_errors