|
Libecoli 0.11.1
Extensible COmmand LIne library
|
A node that prevents its child from being parsed more than once. More...
Functions | |
| struct ec_node * | ec_node_once (const char *id, struct ec_node *child) |
| int | ec_node_once_set_child (struct ec_node *node, struct ec_node *child) |
A node that prevents its child from being parsed more than once.
Configuration Schema
This node behaves like its child, but prevents it from being parsed more than once.
Example:
Matches: [], ["foo", "bar"], ["bar", "bar"], ["foo", "bar", "bar"], ... But not: ["foo", "foo"], ["foo", "bar", "foo"], ...
On error, the child is not freed.