|
Libecoli 0.11.1
Extensible COmmand LIne library
|
Functions | |
| struct ec_node * | ec_yaml_import (const char *filename) |
| int | ec_yaml_export (FILE *out, const struct ec_node *node) |
Interface to import/export ecoli data structures in YAML.
| struct ec_node * ec_yaml_import | ( | const char * | filename | ) |
Parse a YAML file and build an ec_node tree from it.
| filename | The path to the file to be parsed. |
| int ec_yaml_export | ( | FILE * | out, |
| const struct ec_node * | node ) |
Export an ec_node tree to a YAML formatted stream.
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.
| out | The output stream where YAML content will be written. |
| node | The root node of the grammar tree to export. |