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.

Structs§

BasicYamlEntry
ShadowYamlOptions
ShadowYamlReport
YamlShadowToken

Enums§

ShadowYamlOutcome
YamlInputKind
YamlShadowTokenKind

Functions§

lex_basic_mapping_tokens
parse_basic_entry
Parse a single-line YAML mapping entry like title: My Title.
parse_basic_entry_tree
Parse a single-line YAML mapping entry and emit a tiny Rowan CST.
parse_basic_mapping_tree
Parse one or more key: value lines and emit a prototype YAML mapping CST.
parse_shadow
Parse YAML in shadow mode using prototype groundwork only.