ec_node_re_lex - Man Page

Create a regex-based lexer node.

Synopsis

#include <ecoli/node_re_lex.h>

struct ec_node * ec_node_re_lex(
    const char       *id,     /* The node identifier. */
    /*
     * The child node. It is consumed and will be freed when the parent is
     * freed, or immediately on error.
     */
    struct ec_node   *child
);

Description

This node tokenizes the input using regular expressions added with ec_node_re_lex_add() and passes the resulting tokens to the child node.

Return Value

The node, or NULL on error (errno is set).

See Also

ec_node_re_lex_add(3),

Referenced By

ec_node_re_lex_add(3).

2026-06-11 Libecoli Programmer's Manual