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 π
ec_node_check_type(3)ec_node_iter(3)ec_node_attrs(3)ec_node_find(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 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
- 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