ecoli_yaml(3)

πŸ“¦
version 0.11.3 Β· 4 versions
, in epel 9

πŸ’œ 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