diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2016-11-18 15:56:18 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2016-12-15 23:13:52 +0100 |
commit | 7d5718c140611ae125dfab56b94f6a96e19b5922 (patch) | |
tree | 76b5d634724313564e078600818bd66f132c66a7 /lib/graph.h | |
parent | lib: parser: refresh grammar_sandbox (diff) | |
download | frr-7d5718c140611ae125dfab56b94f6a96e19b5922.tar.xz frr-7d5718c140611ae125dfab56b94f6a96e19b5922.zip |
lib: parser: support keyword arguments
This re-adds "{foo WORD|bar WORD}" keyword-argument support to the CLI
parser. Note that token graphs may now contain loops for this purpose;
therefore the matching functions retain a history of already-matched
tokens. Each token can thus only be consumed once.
And then LINE... gets its special treatment with allowrepeat.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r-- | lib/graph.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/graph.h b/lib/graph.h index 8d8aa3823..ee8e37c93 100644 --- a/lib/graph.h +++ b/lib/graph.h @@ -36,6 +36,7 @@ struct graph_node { vector from; // nodes which have edges to this node vector to; // nodes which this node has edges to + bool allowrepeat; void *data; // node data void (*del) (void *data); // deletion callback |