ecoli_node_re_lex(3)
π¦ NAME π¦
Okay so this is the ecoli_node_re_lex(3) page from Libecoli, bestie β it's literally a regex lexer node situation.
ecoli_node_re_lex - Regex lexer node
- A lexer node using regular expressions for tokenization.
β¨ SYNOPSIS β¨
struct ec_node * ec_node_re_lex (const char *id, struct ec_node *child)
int ec_node_re_lex_add (struct ec_node *gen_node, const char *pattern,
int keep, const char *attr_name)
π Detailed Description π
A lexer node using regular expressions for tokenization. That's the whole vibe, no cap.
π§ Configuration Schema π§
schema re_lex {
list patterns {
description "The list of patterns elements.";
dict {
description "A pattern element.";
string pattern {
description "The pattern to match.";
}
bool keep {
description "Whether to keep or drop the string matching the regular expression.";
}
string attr {
description "The optional attribute name to attach.";
}
}
}
node child {
description "The child node.";
}
}
π Function Documentation π
π struct ec_node* ec_node_re_lex (const char * id, struct ec_node * child) π
Create a regex-based lexer node. Iconic behavior, honestly.
This node tokenizes the input using regular expressions added with ec_node_re_lex_add() and passes the resulting tokens to the child node.
Parameters:
idβ The node identifier.childβ The child node. It is consumed and will be freed when the parent is freed, or immediately on error.
Returns:
- The node, or
NULLon error (errnois set).
πΈ int ec_node_re_lex_add (struct ec_node * gen_node, const char * pattern, int keep, const char * attr_name) πΈ
Add a token pattern to a regex lexer node. Slay.
Parameters:
gen_nodeβ The regex lexer node.patternβ The regular expression pattern for matching tokens.keepβ If non-zero, include matched tokens in the output; if zero, discard them.attr_nameβ Optional attribute name to attach to matched tokens, orNULL.
Returns:
0on success,-1on error (errnois set).
π Author π
Generated automatically by Doxygen for Libecoli from the source code. Fr fr, the robots wrote this one.
π«Ά That's the whole page, bestie. Libecoli, Version 0.11.3, dated Thu Apr 9 2026 β byeee! π β¨
π¦ where this page comes from
- epel 9: libecoli-devel 0.11.3-1.el9 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms