vxml_pipeline/writerly_defaults

Writerly assembler, parser, and emitter adapters for the generic renderer.

Values

pub fn default_writerly_assembler(
  dirpath_or_filepath: String,
  options: vxml_pipeline.RendererOptions(a),
) -> Result(
  #(List(io_lines.InputLine), vxml_pipeline.Feedback),
  writerly.AssemblyError,
)

Assembles a Writerly file or directory using the renderer’s path selectors.

The returned feedback describes the assembled directory tree. It is printed only when verbose renderer feedback is enabled.

pub fn default_writerly_emitter(
  fragment: vxml_pipeline.OutputFragment(z, vxml.VXML),
) -> Result(
  #(
    vxml_pipeline.OutputFragment(z, List(io_lines.OutputLine)),
    vxml_pipeline.Feedback,
  ),
  writerly.SerializationError,
)

Emits one VXML fragment as Writerly output lines without feedback.

Conversion fails when the VXML cannot be represented by Writerly’s serializer contract.

pub fn default_writerly_parser(
  lines: List(io_lines.InputLine),
) -> Result(
  #(vxml.VXML, vxml_pipeline.Feedback),
  #(blame.Blame, String),
)

Parses assembled Writerly lines into exactly one VXML root.

Search Document