EC_NODE_RE_LEX(3)
π 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 π
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
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms