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:
ec_pnode_len(3)ec_pnode_get_strvec(3)ec_parse(3)ec_parse_strvec(3)ec_pnode(3)ec_pnode_free_children(3)ec_pnode_get_root(3)ec_pnode_get_parent(3)ec_pnode_find_next(3)ec_pnode_get_first_child(3)ec_pnode_free(3)ec_pnode_dup(3)ec_pnode_matches(3)ec_pnode_dump(3)ec_pnode_unlink_child(3)ec_pnode_next(3)ec_pnode_del_last_child(3)ec_pnode_link_child(3)ec_pnode_count(3)ec_pnode_get_attrs(3)ec_pnode_get_last_child(3)ec_pnode_find(3)ec_parse_child(3)
go read them if you're nosy (affectionate). π
π COPYRIGHT π
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
- 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