Skip to main content

Module yaml

Module yaml 

Source
Expand description

YAML parser groundwork for long-term Panache integration.

This module is intentionally minimal and currently acts as a placeholder for a future in-tree YAML parser that can produce Panache-compatible CST structures. Initial goals:

  • support plain YAML and hashpipe-prefixed YAML from shared parsing primitives,
  • preserve lossless syntax/trivia needed for exact host document ranges,
  • enable shadow-mode comparison against the existing YAML engine before rollout.
  • prepare for first-class YAML formatting support once parser parity is proven.

Modules§

diagnostic_codes

Structs§

ShadowYamlOptions
ShadowYamlReport
YamlDiagnostic
YamlParseReport
YamlTokenSpan

Enums§

ShadowYamlOutcome
YamlInputKind
YamlToken

Functions§

lex_mapping_tokens
parse_shadow
Parse YAML in shadow mode using prototype groundwork only.
parse_yaml_report
Parse prototype YAML tree structure and include diagnostics on failure.
parse_yaml_tree
Parse prototype YAML tree structure from input
project_events
Walk the shadow CST for input and return the projected yaml-test-suite event stream. Returns an empty vector if the input fails to parse.