EC_PARSE(3)
π EC_PARSE(3) π
hey bestie!! welcome to the libecoli programmer's manual, page for ec_parse β¨ β yes that's the manual name, no I will not be boring about it. this is the one that takes your lil string and yeets it through a grammar tree. let's GO π¦
πΈ NAME πΈ
ec_parse β parse a string using a grammar tree. that's it. that's the whole job. π
β¨ SYNOPSIS β¨
#include <ecoli/parse.h>
struct ec_pnode * ec_parse(
const struct ec_node *node, /* The grammar node. */
const char *str /* The input string. */
);
look at her. she's so simple. she's so iconic. π
π DESCRIPTION π
okay so lowkey this is equivalent to calling ec_parse_strvec() on the same node, but with a string vector that contains only the argument string str. that's the whole vibe β one string in, one call, no extra steps. fr fr. π
π«Ά RETURN VALUE π«Ά
you get back a parsing tree β¨ β¦ or NULL on error, in which case errno is set. (not me manifesting a parse tree π just check for NULL, bestie, please.)
π heads up: NULL means error. always check. no cap.
π₯ SEE ALSO π₯
the whole girl group, together, as one π:
ec_pnode_len(3)ec_pnode_get_strvec(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_get_node(3)ec_pnode_find(3)ec_parse_child(3)
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
and that's the page!! mwah π this was libecoli's manual, dated 2026-06-11, page EC_PARSE(3) β go parse something gorgeous, bestie ππ¦π
π¦ 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