X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=include%2Fecoli_node_any.h;h=3f21927a1279f3f15e0bc99082c38e3c644ad4f1;hb=70ebe6bd8740d8cb32cd0b0a21ca28a4fa74a2a5;hp=ee638aaa570a5267db5b4eff462e69f6525ebf46;hpb=18d03456d96f7a086a2ccc82ce97fcf056848d90;p=protos%2Flibecoli.git diff --git a/include/ecoli_node_any.h b/include/ecoli_node_any.h index ee638aa..3f21927 100644 --- a/include/ecoli_node_any.h +++ b/include/ecoli_node_any.h @@ -3,12 +3,30 @@ */ /** - * This node always matches 1 string in the vector + * @defgroup nodes Nodes + * @{ + * + * 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_ -/* 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 + +/** @} */