EC_NODE_ATTRS(3)

πŸ“¦
version 0.11.7 Β· 4 versions
, in fedora 44

✨ 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:


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