copybook-dialect
Shared dialect contract for ODO (OCCURS DEPENDING ON) min_count semantics.
Overview
Different COBOL compilers interpret the minimum occurrence count in ODO declarations
differently. This crate provides the Dialect enum and an effective_min_count helper
that normalizes declared bounds according to the selected dialect (IBM, Micro Focus, etc.).
Usage
use ;
use FromStr;
let dialect = from_str?; // OneTolerant (Micro Focus)
assert_eq!;
# Ok::
Public API
Dialect—Normative,ZeroTolerant,OneToleranteffective_min_count(dialect, declared_min_count)— Apply dialect rules
License
AGPL-3.0-or-later