EC_NODE_RE_LEX(3)

πŸ“¦
version 0.11.7 Β· 4 versions
, in fedora 44

πŸ’– EC_NODE_RE_LEX(3) πŸ’–

Libecoli Programmer's Manual ✨ (yes bestie, we're in the libecoli chapter, iykyk)


🌸 NAME 🌸

ec_node_re_lex β€” ok so this one makes a regex-based lexer node πŸ§šβ€β™€οΈ it's giving "i chop up your input with regexes and hand you the pieces."


✨ 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
);

two args, that's it, she's lowkey simple like that πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

So basically this node tokenizes the input using regular expressions, and those regexes get added with ec_node_re_lex_add(), and then it passes the resulting tokens straight to the child node. Tokenize β†’ hand off β†’ child does its thing. Periodt. πŸŽ€


πŸ‘‘ RETURN VALUE πŸ‘‘

You get the node back 🫢 … or NULL on error, and ngl when that happens errno is set. So like, check it. 😭


🌈 SEE ALSO 🌈


Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.


ok that's the whole page bestie, you ate it πŸ’– this was libecoli, dated 2026-06-11, and it lives under the manual name EC_NODE_RE_LEX(3) β€” go forth and tokenize, main character πŸŒŸπŸ‘‘

πŸ“¦ where this page comes from