EC_NODE_CHECK_TYPE(3)
π EC_NODE_CHECK_TYPE β it's giving "is this node THAT girl?" π
okay bestie, welcome to Libecoli Programmer's Manual section 3, where we answer the one question every grammar node has to face at some point: are you actually the type you say you are? β¨
π NAME π
ec_node_check_type β literally just check the type of a node. that's it. that's the job. π
πΈ SYNOPSIS πΈ
#include <ecoli/node.h>
int ec_node_check_type(
const struct ec_node *node, /* The grammar node. */
const struct ec_node_type *type /* The pointer to the type structure. */
);
so you roll up with a node and a type pointer, and it tells you if they match. main character energy honestly. π¦
π§ STRUCTURES π§
so there's a structure that describes a grammar node type, and it's usually defined as a static const structure in the code that defines a new grammar node type. if you wanna see real examples, go peek in the ecoli_node_<type>.c files β they're the blueprint besties. π
struct ec_node_type {
};
that's the whole thing, no cap. yes it's empty here, that's just how the page shows it. π
β RETURN VALUE β
0β slay, the node is of the specified type. π-1β nope, not that type. π
periodt.
π SEE ALSO π
the whole friend group, fr fr:
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_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 vibe check, bestie β this page came from libecoli and it's dated 2026-06-11. go forth and check those types. ππ«Ά
π¦ 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