EC_NODE_SUBSET_SET_MIN(3)
β¨ EC_NODE_SUBSET_SET_MIN(3) β¨
okay bestie, so this is from the Libecoli Programmer's Manual and it's literally the glow-up button for your subset node π
π NAME π
ec_node_subset_set_min β sets the minimum number of children that have to match. that's it, that's the whole job π
πΈ SYNOPSIS πΈ
#include <ecoli/node_subset.h>
int ec_node_subset_set_min(
struct ec_node *node, /* The subset node. */
unsigned int min /* The minimum number of children that must match. */
);
π¦ DESCRIPTION π¦
so by default, a subset node is lowkey chill and accepts zero matching children. like, zero is fine, no big deal, it's giving "whatever works" energy.
you use this function when you wanna raise the bar π«Ά β require a minimum number of children to match before the parse can succeed. no minimum met? no parse. periodt. π
β RETURN VALUE β
0β success, we ate, the min is set π-1β error, anderrnois set π
π SEE ALSO π
go read the whole fam, iykyk π§
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
that's the page bestie, slay π
libecoli, dated 2026-06-11, and yes it's literally EC_NODE_SUBSET_SET_MIN(3) β go set your minimums, 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