EC_NODE_ATTRS(3)
β¨ EC_NODE_ATTRS(3) β¨
okay bestie, welcome to the libecoli programmer's manual π this one's a lil one but she's important, so lock in for like two minutes, i promise it's not that deep.
πΈ NAME πΈ
ec_node_attrs β no cap, she gets you the attributes dict of the node π
π¦ SYNOPSIS π¦
#include <ecoli/node.h>
struct ec_dict * ec_node_attrs(
const struct ec_node *node /* The grammar node. */
);
that's it. that's the whole thing. she takes one node (the grammar node, duh) and hands you back the goods β¨
π DESCRIPTION π
so like, here's the tea π: a user can add any attribute to a node. literally any. go feral, bestie, it's your node.
BUT. attributes whose keys start with an underscore are reserved. that's not your lane. don't touch. the underscore keys are the library's, okay? respect the boundary π«Ά
π RETURN VALUE π
she gives you back the attribute dictionary of this node. that's the whole return value. slay. no error codes, no drama, just the dict π
π SEE ALSO π
the whole friend group, periodt π go read these too, iykyk:
ec_node_check_type(3)ec_node_iter(3)ec_node_find(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. π
and that's a wrap, gorgeous πΈ this was page EC_NODE_ATTRS(3) from the libecoli programmer's manual, dated 2026-06-11 β mwah, go forth and read your attributes responsibly π
β¨
π¦ 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