add ec_node_bypass
[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  * This node always matches 1 string in the vector.
7  * An optional strvec attribute can be checked too. These
8  * attributes are usually set by a lexer node.
9  */
10
11 #ifndef ECOLI_NODE_ANY_
12 #define ECOLI_NODE_ANY_
13
14 /**
15  * Create a "any" node.
16  *
17  * @param id
18  *   The node identifier.
19  * @param attr
20  *   The strvec attribute to match, or NULL.
21  * @return
22  *   The ecoli node.
23  */
24 struct ec_node *
25 ec_node_any(const char *id, const char *attr);
26
27 #endif