ec_yaml_export - Man Page

Export an ec_node tree to a YAML formatted stream.

Synopsis

#include <ecoli/yaml.h>

int ec_yaml_export(
    /*
     * The output stream where YAML content will be written.
     */
    FILE                   *out,
    const struct ec_node   *node   /* The root node of the grammar tree to export. */
);

Description

This function traverses the ec_node tree and outputs a YAML representation of the grammar structure including node type, id, help, attributes and configuration. The output can be used as a template or documentation for grammar definitions.

Return Value

0 on success, or -1 on error (errno is set).

See Also

ec_yaml_import(3),

Referenced By

ec_yaml_import(3).

2026-06-11 Libecoli Programmer's Manual