EC_NODE_FIND(3)
β¨ EC_NODE_FIND β¨
okay so bestie, welcome to EC_NODE_FIND(3) from the Libecoli Programmer's Manual β this is the lil function that goes hunting through your grammar tree for one specific node, and honestly? it's giving search-and-rescue but make it cute π
π NAME π
ec_node_find β Find a node from its identifier string.
like, you give it an id, it gives you the node. match made in heaven fr fr π¦
πΈ SYNOPSIS πΈ
#include <ecoli/node.h>
struct ec_node * ec_node_find(
struct ec_node *node, /* The grammar tree. */
const char *id /* The identifier to match. */
);
π§ DESCRIPTION π§
So here's the vibe: it browses the tree using pre-order depth traversal, and returns the first node that matches the given identifier. π«Ά
Pre-order depth traversal, meaning it dives deep before it goes wide β first match wins, no cap. π
π RETURN VALUE π
A node matching the identifier. that's it, that's the tea β¨
π SEE ALSO π
the whole friend group, assembled:
ec_node_check_type(3)ec_node_iter(3)ec_node_attrs(3)ec_node_type_name(3)ec_node_free(3)ec_node_id(3)ec_node_type_dump(3)ec_node_get_config(3)ec_node_schema_dump(3)ec_node_priv(3)ec_node_type_lookup(3)ec_node_clone(3)ec_node_dump(3)ec_node_desc(3)ec_node_iter_free(3)ec_node_iter_get_parent(3)ec_node_from_type(3)ec_node_type(3)ec_node_iter_next(3)ec_node_type_schema(3)ec_node(3)ec_node_get_children_count(3)ec_node_get_type_name(3)ec_node_type_register(3)ec_node_set_config(3)ec_node_iter_get_node(3)ec_node_get_child(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
lowkey iconic of them to write this whole thing, ngl π
and that's a wrap!! this page came from libecoli, dated 2026-06-11, filed under EC_NODE_FIND(3) β mwah, periodt π
π
π¦ 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