EC_NODE_TYPE_NAME(3)

✨ EC_NODE_TYPE_NAME ✨

okay bestie, welcome to ec_node_type_name(3) from the Libecoli Programmer's Manual πŸ’– this one is short and sweet and honestly iconic for it.


🌸 NAME 🌸

ec_node_type_name β€” Get the name of a node type. like, the actual name. that's the whole job. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <ecoli/node.h>

const char * ec_node_type_name(
    const struct ec_node_type   *type   /* The node type. */
);

so you hand it a pointer to a node type, and it hands you back a string. no drama, no side quests πŸ’…


πŸ’œ STRUCTURES πŸ’œ

A structure describing a grammar node type. yes, a whole struct, we love a struct 🫢

It is usually defined as a static const structure in the code defining a new grammar node type. If you wanna see real ones out in the wild, go peek at the ecoli_node_<type>.c files β€” they're giving "show don't tell" energy fr fr.

struct ec_node_type {
};
not me showing you an empty struct and calling it a day 😭 that's literally what's in the docs, so that's literally what you get. no cap.

⭐ RETURN VALUE ⭐

The (read-only) name of the node type. that's it. that's the tea. don't go trying to write to it, it's not yours, it's read-only, respect the boundary bestie πŸ™ˆ


🌈 SEE ALSO 🌈

okay so this page is lowkey part of a whole friend group, here's the entire squad πŸ‘‘


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


and that's the whole page, bestie πŸ’– this was libecoli edition, dated 2026-06-11, manual section 3. go name some node types, you absolute main character πŸ¦‹βœ¨

πŸ“¦ where this page comes from