EC_NODE_ANY(3)

✨ EC_NODE_ANY ✨

okay bestie, welcome to the Libecoli Programmer's Manual πŸ’– today we're learning about ec_node_any, which is literally the chillest node in the whole roster. no cap.


πŸŽ€ NAME πŸŽ€

ec_node_any β€” make an "any" node. that's it. that's the whole job. slay.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <ecoli/node_any.h>

struct ec_node * ec_node_any(
    const char   *id,    /* The node identifier. */
    const char   *attr   /* The strvec attribute to match, or NULL. */
);

the way she just takes two little strings and gives you back a whole node?? main character energy fr fr πŸ‘‘


🌸 DESCRIPTION 🌸

okay so here's the tea β˜• β€” this node always matches 1 string in the vector. like, always. one string. no more, no less. she's committed, she's loyal, she's giving stable relationship.

and if you're feeling extra, you can also pass an optional strvec attribute and it'll get checked too. πŸ’…

little lore drop: these attributes are usually set by a lexer node. so if you're wondering where your attr even came from, it's probably the lexer. iykyk 🧚

πŸ’œ RETURN VALUE πŸ’œ

she returns the ecoli node ✨ periodt.


πŸ“ SEE ALSO πŸ“

bestie… there's literally nothing here 😭 empty. a blank space. she's mysterious like that πŸ™ˆ


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


and that's a wrap on our girl πŸ’– she's from libecoli, dated 2026-06-11, and lives at EC_NODE_ANY(3) β€” go forth and match exactly one string, bestie, you got this 🫢🌈⭐

πŸ“¦ where this page comes from