ec_node_cond - Man Page

Create a condition node.

Synopsis

#include <ecoli/node_cond.h>

struct ec_node * ec_node_cond(
    const char       *id,        /* The node identifier. */
    /*
     * The condition string. This is a function-based expression.
     */
    const char       *cond_str,
    struct ec_node   *child      /* The ecoli child node. */
);

Description

The condition node checks that an expression is true before parsing/completing the child node. If it is false, the node doesn't match anything.

Return Value

The new ecoli cond node.

See Also

Info

2026-06-11 Libecoli Programmer's Manual