ec_node_re_lex_add - Man Page
Add a token pattern to a regex lexer node.
Synopsis
#include <ecoli/node_re_lex.h>
int ec_node_re_lex_add(
struct ec_node *gen_node, /* The regex lexer node. */
/*
* The regular expression pattern for matching tokens.
*/
const char *pattern,
/*
* If non-zero, include matched tokens in the output; if zero, discard
* them.
*/
int keep,
/*
* Optional attribute name to attach to matched tokens, or NULL.
*/
const char *attr_name
);Return Value
0 on success, -1 on error (errno is set).
See Also
Copyright
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
Referenced By
2026-06-11 Libecoli Programmer's Manual