Skip to main content

Module yaml_proc

Module yaml_proc 

Source
Expand description

YAML structured processor.

The CLI uses process_to_edits: it drives a span-aware event parser (saphyr-parser) and replaces each matched scalar at its exact source span, preserving comments, anchors, key order, and quote style byte-for-byte (escaped/quoted scalars are hit as written, so they never leak). process is the re-serializing fallback (which normalizes some whitespace).

Key paths use the same dot-separated convention as the JSON processor.

Structsยง

YamlProcessor
Structured processor for YAML files.