git.droids-corp.org
/
protos
/
libecoli.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix minor leaks
[protos/libecoli.git]
/
include
/
ecoli_node_any.h
diff --git
a/include/ecoli_node_any.h
b/include/ecoli_node_any.h
index
ee638aa
..
cb671e3
100644
(file)
--- a/
include/ecoli_node_any.h
+++ b/
include/ecoli_node_any.h
@@
-3,12
+3,25
@@
*/
/**
*/
/**
- * This node always matches 1 string in the vector
+ * This node always matches 1 string in the vector.
+ * An optional strvec attribute can be checked too. These
+ * attributes are usually set by a lexer node.
*/
#ifndef ECOLI_NODE_ANY_
#define ECOLI_NODE_ANY_
*/
#ifndef ECOLI_NODE_ANY_
#define ECOLI_NODE_ANY_
-/* no specific API for this node */
+/**
+ * Create a "any" node.
+ *
+ * @param id
+ * The node identifier.
+ * @param attr
+ * The strvec attribute to match, or NULL.
+ * @return
+ * The ecoli node.
+ */
+struct ec_node *
+ec_node_any(const char *id, const char *attr);
#endif
#endif