EC_NODE_TYPE_REGISTER(3)
β¨ EC_NODE_TYPE_REGISTER β¨
okay bestie, so this is from the Libecoli Programmer's Manual β section 3, the library functions zone π
πΈ NAME πΈ
ec_node_type_register β literally just: register a node type. that's the whole gig. no cap.
π SYNOPSIS π
#include <ecoli/node.h>
int ec_node_type_register(
struct ec_node_type *type, /* The node type to be registered. */
bool override /* Allow the registration of an existing type. */
);
π DESCRIPTION π
so. the name of the type you're registering is a unique identifier β like, it's the name, one of one, no duplicates allowed in the group chat. β¨
but β and this is the plot twist β you can force a registration of a type that has a name that already exists. how? set override to true. π
careful though!! the initial type is not removed from the list. nope. instead, the new one gets added before it in the list. so the og is still there, justβ¦ behind. it's giving "new girl walked in and stood in front of you" energy. π
π¦ STRUCTURES π¦
a structure that describes a grammar node type. π
it's usually defined as a static const structure, inside the code that's defining a new grammar node type. wanna see examples? go peek at the ecoli_node_<type>.c files, they got the receipts. π
struct ec_node_type {
};
β RETURN VALUE β
0β on success π«Ά- negative value β on error π
π₯ SEE ALSO π₯
the whole friend group, in order, periodt:
ec_node_check_type(3)ec_node_iter(3)ec_node_attrs(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_set_config(3)ec_node_iter_get_node(3)ec_node_get_child(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry. π«Ά
okay that's the whole page bestie, you ate π β¨
libecoli Β· 2026-06-11 Β· that's the version and the date, mwah, no notes, bye πππ¦
π¦ 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