]> git.proxmox.com Git - mirror_frr.git/commit
lib: parser: unify subgraphs & simplify even more
authorDavid Lamparter <equinox@opensourcerouting.org>
Sat, 17 Dec 2016 04:25:36 +0000 (05:25 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Mon, 23 Jan 2017 20:52:44 +0000 (21:52 +0100)
commit663982cda7188c03472975ef412e57152744eaa5
treeab62d13d6580718260a2e9be3aac47f7becdb371
parent2020b1c8a88fc4f0c0dd788261deb06ee0c670a7
lib: parser: unify subgraphs & simplify even more

This cuts a large piece of complexity from the parser by making the
sequences between | the same, no matter whether it's <> () or [].

This causes some changes in behaviour:
- [foo|bar] is now accepted
- <foo|[bar]> is now accepted (yes it's stupid)
- {a|b} is now means "at least one of these, in any order"; to allow
  zero use [{a|b}] instead.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/command_parse.y
tests/testcli.refout