ecoli_yaml(3)
π ecoli_yaml(3) β bestie edition π
okay so this is a page from the Libecoli manual, section 3, and it's literally all about YAML import/export. yes, that YAML. the indentation-sensitive one. we love her π
β¨ NAME β¨
ecoli_yaml β YAML import/export, bestie. that's the whole vibe. importing it, exporting it, living for it π¦
πΈ SYNOPSIS πΈ
Functions
struct ec_node * ec_yaml_import (const char *filename)
int ec_yaml_export (FILE *out, const struct ec_node *node)
two functions, both iconic, both doing exactly what it says on the tin π
π Detailed Description π
it's the interface to import/export ecoli data structures in YAML. that's it, that's the whole thing. it's giving "small but mighty" energy β¨
π«Ά Function Documentation π«Ά
struct ec_node* ec_yaml_import (const char * filename)
parse a YAML file and build an ec_node tree from it. like, literally turns your YAML into a tree. no cap π
Parameters
filenameβ the path to the file to be parsed. yes, an actual path to an actual file π
Returns
the ec_node tree on success, or NULL on error (errno is set). and bestie, listen β the returned node must be freed by the caller with ec_node_free(). that's not optional, that's the rules π
int ec_yaml_export (FILE * out, const struct ec_node * node)
export an ec_node tree to a YAML formatted stream. so you take your tree and you push it out as YAML β¨
this function traverses the ec_node tree and outputs a YAML representation of the grammar structure including node type, id, help, attributes and configuration. every single one of those. the output can be used as a template or documentation for grammar definitions π
Parameters
outβ the output stream where YAML content will be written. the vibe destination πnodeβ the root node of the grammar tree to export. the main character of this operation π
Returns
0 on success, or -1 on error (errno is set). simple. clean. we stan πΈ
π Author π
generated automatically by Doxygen for Libecoli from the source code. so no, a human didn't hand-write this, a robot did, and honestly? she ate π€π
okay that's literally everything, go free your nodes and parse your YAML bestie π§ iykyk
Libecoli version 0.11.3 Β· Thu Apr 9 2026 Β· stay hydrated, free your pointers, and don't leak memory π
π¦ where this page comes from
- epel 9: libecoli-devel 0.11.3-1.el9 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms