EC_PNODE_GET_NODE(3)

✨ EC_PNODE_GET_NODE(3) ✨

okay bestie, welcome to the Libecoli Programmer's Manual πŸ’– this one's a tiny lil function but it's lowkey important. it's giving "who dis node" energy. let's go πŸ¦‹


🌸 NAME 🌸

ec_pnode_get_node β€” get the grammar node corresponding to the parsing node.

like, you have a parsing node? and you wanna know which grammar node made it? yeah. that's the whole vibe. πŸ’…


✨ SYNOPSIS ✨

#include <ecoli/parse.h>

const struct ec_node * ec_pnode_get_node(
    const struct ec_pnode   *pnode   /* A node in the parsing tree. */
);

so you gotta include <ecoli/parse.h> first, no cap. then you call it with a const struct ec_pnode *pnode β€” that's a node in the parsing tree, bestie. that comment is literally in the code, keep it. 🫢


πŸ’– RETURN VALUE πŸ’–

the corresponding grammar node, that issued the parse. periodt. that's what you get back. it's the origin story of your parse node. πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

okay so this function runs with a whole squad. here's the full crew, don't skip anyone:

go read them if you're nosy (affectionate). πŸ“š


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


and that's the whole page, bestie. this came from the libecoli manual, dated 2026-06-11, and the page itself is EC_PNODE_GET_NODE(3). mwah. stay slaying those parse trees. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from