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/, andimpls/), validates each target Short Dc ID indc_defns, and attaches its<semantic>.../<equiv>...decomposition entry to the matchingDcDefn. - attach_
staged_ dc_ impls_ to_ defns - Attaches already-loaded
crate::wat::StagedDcImplentries todc_defnsand optionalformat_defns(or validates format targets againstknown_format_idswhenformat_defnsis not supplied). - attach_
staged_ dc_ impls_ to_ defns_ with_ registry - Attaches already-loaded
crate::wat::StagedDcImplentries todc_defnsand optionalformat_defns, enforcing that anyDcShorthand::Format(fid)target belongs to.Formats:transformation. - derive_
el_ routine_ syntax - Derives a
DcSyntaxRulefor a.EM Routinesentry from the parameter signature in itsNamecolumn (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.csvregistry table into a map from script name to its optional block increment size (Nonewhen"TBD", orSome(size)wheresizeis 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/*.ctbnodessynchronization (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 (
TBDor a positive integer multiple of 16), and returning the set of valid script identifiers.