lib: parser: accept number-only word tokens

There seems to be no reason why numbers don't work as plain word tokens;
this is useful to have "number choices" or constants, e.g. <128|192|256>
for bit encryption lengths.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2016-12-16 20:43:26 +01:00
parent a6cf5da4fd
commit bca1a301ba

View File

@ -26,7 +26,7 @@
#include "command_parse.h"
%}
WORD (\-|\+)?[a-z\*][-+_a-zA-Z0-9\*]*
WORD (\-|\+)?[a-z0-9\*][-+_a-zA-Z0-9\*]*
IPV4 A\.B\.C\.D
IPV4_PREFIX A\.B\.C\.D\/M
IPV6 X:X::X:X