diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2016-12-17 05:25:36 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-01-23 21:52:44 +0100 |
commit | 663982cda7188c03472975ef412e57152744eaa5 (patch) | |
tree | ab62d13d6580718260a2e9be3aac47f7becdb371 /tests | |
parent | lib: parser: keep subgraph pointers on stack (diff) | |
download | frr-663982cda7188c03472975ef412e57152744eaa5.tar.xz frr-663982cda7188c03472975ef412e57152744eaa5.zip |
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testcli.refout | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/testcli.refout b/tests/testcli.refout index 088cbdfec..8b438baee 100644 --- a/tests/testcli.refout +++ b/tests/testcli.refout @@ -188,15 +188,11 @@ test# pat c c x % [NONE] Unknown command: pat c c x
test#
test# pat d
-cmd8 with 2 args.
-[00]: pat
-[01]: d
+% Command incomplete.
test# pat d
bar baz foo
test# pat d
-cmd8 with 2 args.
-[00]: pat
-[01]: d
+% Command incomplete.
test# pat d foo 1.2.3.4
cmd8 with 4 args.
[00]: pat
|