|
Libecoli 0.11.1
Extensible COmmand LIne library
|
A node that matches its child multiple times. More...
Functions | |
| struct ec_node * | ec_node_many (const char *id, struct ec_node *child, unsigned int min, unsigned int max) |
| int | ec_node_many_set_params (struct ec_node *gen_node, struct ec_node *child, unsigned int min, unsigned int max) |
A node that matches its child multiple times.
Configuration Schema
| struct ec_node * ec_node_many | ( | const char * | id, |
| struct ec_node * | child, | ||
| unsigned int | min, | ||
| unsigned int | max ) |
Create a many node that matches its child multiple times.
| id | The node identifier. |
| child | The child node. It is consumed and will be freed when the parent is freed, or immediately on error. |
| min | Minimum number of repetitions. Use 0 for no minimum. |
| max | Maximum number of repetitions. Use 0 for no maximum. |
| int ec_node_many_set_params | ( | struct ec_node * | gen_node, |
| struct ec_node * | child, | ||
| unsigned int | min, | ||
| unsigned int | max ) |
Set the parameters of a many node.
| gen_node | The many node. |
| child | The child node. It is consumed and will be freed when the parent is freed, or immediately on error. |
| min | Minimum number of repetitions. Use 0 for no minimum. |
| max | Maximum number of repetitions. Use 0 for no maximum. |