]> git.puffer.fish Git - matthieu/frr.git/commit
lib: parser: remove startnode & sentence_root
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 23 Nov 2016 18:20:15 +0000 (19:20 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 16 Dec 2016 19:48:31 +0000 (20:48 +0100)
commitfd19e7a2c02e0440be21358f175b0059e80f1d0b
tree4ff9ccbe3cb7bec1bb2e963ce469050fb4c9ae73
parentbca1a301babea5f2cd17ccd7e6d077fbd120bfda
lib: parser: remove startnode & sentence_root

This removes an artificial restriction for the first token in a
command's graph to be a WORD_TKN.  The intention seems to be to prohibit
empty paths through a command, and to restrict "explosion" of choices in
the root node.

The better approach to the former is to check for an empty path after
the definition is parsed.  The latter will happen anyway, by duplication
of the command, which just makes it worse...

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