Module validation

Module validation 

Source
Expand description

Comprehensive table validators for Document Characters (Dcs), Formats, and Global Graph Layout datasets.

Functionsยง

attach_staged_dc_impls_from_data_dir
Loads staged implementations from data_src_dir (stage_0_impls/, stage_1_impls/, and impls/), validates each target Short Dc ID in dc_defns, and attaches its <semantic>... / <equiv>... decomposition entry to the matching DcDefn.
attach_staged_dc_impls_to_defns
Attaches already-loaded crate::wat::StagedDcImpl entries to dc_defns and optional format_defns (or validates format targets against known_format_ids when format_defns is not supplied).
attach_staged_dc_impls_to_defns_with_registry
Attaches already-loaded crate::wat::StagedDcImpl entries to dc_defns and optional format_defns, enforcing that any DcShorthand::Format(fid) target belongs to .Formats:transformation.
derive_el_routine_syntax
Derives a DcSyntaxRule for a .EM Routines entry from the parameter signature in its Name column (e.g. void lang.say([string] text) -> :~ 258 [string $text] 259).
extract_named_type_names
Extracts the set of named type identifiers from the README-named-types.csv table.
load_embedded_known_scripts
Loads and validates the known scripts table from embedded assets.
parse_dc_aliases_column
Parses the composite Aliases/cross-reference/decomposition/syntax column and validates all spacing, delimiter, and formatting conventions in a single pass.
parse_scripts_block_sizes_with_report
Validates and parses the README.scripts.csv registry table into a map from script name to its optional block increment size (None when "TBD", or Some(size) where size is a positive multiple of 16).
split_dc_aliases_column
Splits the composite aliases/cross-reference/decomposition/syntax column.
validate_all_data_tables
Runs comprehensive validation across all repository data tables.
validate_all_data_tables_embedded
Runs validation across all repository data tables located in the repository.
validate_all_data_tables_from_repo
Runs validation directly against live files in a repository directory.
validate_all_data_tables_from_repo_with_options
Runs validation directly against live files in a repository directory, optionally checking on-disk assets/data/graph/*.ctbnodes synchronization (check_ledger_sync).
validate_all_dc_files
Discovers and validates all Dc category files from an embedded directory.
validate_all_dc_files_from_disk
Discovers and validates all Dc category files from an on-disk directory.
validate_dc_aliases_spacing
Validates spacing and formatting conventions in the Aliases column.
validate_dc_category_file
Parses and validates a single Dc category CSV file.
validate_dc_files_data
Validates a sequence of Dc category files.
validate_decompositions_table
Validates the README-decompositions.csv table, verifying schema and uniqueness, and returning the set of valid decomposition tags.
validate_named_types_table
Validates the README-named-types.csv table, verifying syntax declarations for each named type, and returning the set of valid named type names.
validate_scripts_table
Validates the README.scripts.csv registry table, verifying schema, uniqueness, and block increment sizes (TBD or a positive integer multiple of 16), and returning the set of valid script identifiers.