]> git.proxmox.com Git - mirror_frr.git/commit - lib/command_parse.y
lib: parser: support keyword arguments
authorDavid Lamparter <equinox@opensourcerouting.org>
Fri, 18 Nov 2016 14:56:18 +0000 (15:56 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 15 Dec 2016 22:13:52 +0000 (23:13 +0100)
commit7d5718c140611ae125dfab56b94f6a96e19b5922
tree76b5d634724313564e078600818bd66f132c66a7
parentfa133e00c2103ffcacbf3a20d0c1a7a1a86d63ab
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>
lib/command_match.c
lib/command_parse.y
lib/graph.h