api documentation for ec_parse
[protos/libecoli.git] / include / ecoli_node_any.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2016, Olivier MATZ <zer0@droids-corp.org>
3  */
4
5 /**
6  * @defgroup nodes Nodes
7  * @{
8  *
9  * This node always matches 1 string in the vector.
10  * An optional strvec attribute can be checked too. These
11  * attributes are usually set by a lexer node.
12  */
13
14 #ifndef ECOLI_NODE_ANY_
15 #define ECOLI_NODE_ANY_
16
17 /**
18  * Create a "any" node.
19  *
20  * @param id
21  *   The node identifier.
22  * @param attr
23  *   The strvec attribute to match, or NULL.
24  * @return
25  *   The ecoli node.
26  */
27 struct ec_node *
28 ec_node_any(const char *id, const char *attr);
29
30 #endif
31
32 /** @} */