EC_PNODE_GET_PARENT(3)

✨ EC_PNODE_GET_PARENT(3) ✨

okay bestie, welcome to the Libecoli Programmer's Manual πŸ’– this one's short and sweet, like a lil snack before the main course, and it's literally just one function. no cap.


🌸 NAME 🌸

ec_pnode_get_parent β€” get the parent node in the parsing tree 🫢

like, who's your daddy? this function knows.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <ecoli/parse.h>

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

so you hand it a pnode, which the comment lovingly reminds us is A node in the parsing tree, and it hands you back a struct ec_pnode *. iconic behaviour, honestly.


πŸŽ€ RETURN VALUE πŸŽ€

the parent node πŸ’…

or β€” and this is the plot twist β€” NULL if it's the root πŸ‘‘

like yeah, if you're at the top of the tree there's literally nobody above you, main character energy, no parent, just vibes. so NULL it is. periodt.


🌈 SEE ALSO 🌈

the whole friend group, fr fr. go read these too:

iykyk 😌 the family tree is deep.


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


and that's the whole page, bestie πŸ“ thanks for reading, mwah πŸ’– this was libecoli, dated 2026-06-11, filed under EC_PNODE_GET_PARENT(3) β€” go get that parent node, you absolute legend πŸ‘‘βœ¨

πŸ“¦ where this page comes from