EC_NODE_TYPE_SCHEMA(3)

✨ EC_NODE_TYPE_SCHEMA ✨

okay bestie, so this is a page from the Libecoli Programmer's Manual β€” it's the ec_node_type_schema(3) page, and it's lowkey one of the most useful little functions in the whole node-type universe. let's get into it πŸ’…


πŸ’– NAME πŸ’–

ec_node_type_schema β€” get the config schema of a node type. that's literally it, that's the whole job. she gets you the schema. iconic behaviour fr fr.


🌸 SYNOPSIS 🌸

#include <ecoli/node.h>

const struct ec_config_schema * ec_node_type_schema(
    const struct ec_node_type   *type   /* The node type. */
);

so you pass in the node type β€” that's the type argument right there, the node type β€” and she hands you back a pointer to a const struct ec_config_schema. note the const, bestie. we do not touch. we look only. πŸ™ˆ


πŸ¦‹ STRUCTURES πŸ¦‹

a structure describing a grammar node type, okay so:

It is usually defined as a static const structure in the code defining a new grammar node type. Examples can be found in ecoli_node_<type>.c files.
struct ec_node_type {
};

so yeah β€” struct ec_node_type is the vibe, and if you wanna see how the cool kids define one, go peek at those ecoli_node_<type>.c files. the examples are all sitting right there, no cap. ✨


πŸŽ€ RETURN VALUE πŸŽ€

the (read-only) config schema of the node type, or NULL if the node type has no config schema.

that's the whole tea. if there's no schema? you get NULL. check for it, bestie. she will not warn you. 😭


πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group showed up, and honestly? they ate:


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


and that's the page, bestie πŸ’œ this was libecoli, dated 2026-06-11, filed under EC_NODE_TYPE_SCHEMA(3) in the Libecoli Programmer's Manual. go get that schema, you absolute main character. periodt. 🫢✨

πŸ“¦ where this page comes from