From 0bf5b1cbe3812e748d459fa4c4fb6596e072e7bd Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Fri, 16 Dec 2016 22:30:36 +0100 Subject: lib: parser: simplify OPTION_TKN & SELECTOR_TKN These are functionally identical as "fork" tokens. Signed-off-by: David Lamparter --- lib/command.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/command.h') diff --git a/lib/command.h b/lib/command.h index 1e1698fc7d..dd940f0d57 100644 --- a/lib/command.h +++ b/lib/command.h @@ -176,11 +176,12 @@ enum cmd_token_type IPV6_PREFIX_TKN, // IPV6 network prefixes /* plumbing types */ - SELECTOR_TKN, // marks beginning of selector - OPTION_TKN, // marks beginning of option - NUL_TKN, // dummy token + FORK_TKN, // marks subgraph beginning + JOIN_TKN, // marks subgraph end START_TKN, // first token in line END_TKN, // last token in line + + SPECIAL_TKN = FORK_TKN, }; /* Command attributes */ -- cgit v1.2.3