yamleam/scalar

Plain scalar resolution.

Converts the verbatim text of a plain (unquoted) scalar into a typed YamlNode according to YAML 1.2 resolution rules. Quoted scalars are always strings and bypass this layer entirely.

Resolution priority (first match wins):

  1. Empty / “null” / “Null” / “NULL” / “~” → YamlNull
  2. “true” / “True” / “TRUE” → YamlBool(True)
  3. “false” / “False” / “FALSE” → YamlBool(False)
  4. Decimal integer (optional sign) → YamlInt
  5. Decimal float (optional sign, exponent) → YamlFloat
  6. Otherwise → YamlString

yamleam v0.1 explicitly does NOT recognize:

Values

pub fn resolve(text: String) -> node.YamlNode
Search Document