summaryrefslogtreecommitdiff
path: root/src/cli_parse.y
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-01-24 17:34:30 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-01-24 17:34:30 -0800
commit72c4913ad51c64f73f49e6ec00764185b8c32740 (patch)
treeb9e92b23778e2a08f769d8a46c4c8dd5015e1ed1 /src/cli_parse.y
parentc0f8c1cbd9afc87ae76222024dd0e98127ca1708 (diff)
downloadvyatta-cfg-72c4913ad51c64f73f49e6ec00764185b8c32740.tar.gz
vyatta-cfg-72c4913ad51c64f73f49e6ec00764185b8c32740.zip
add "official" support for "comp_help" and "allowed" in config template
parser (ignored by backend).
Diffstat (limited to 'src/cli_parse.y')
-rw-r--r--src/cli_parse.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cli_parse.y b/src/cli_parse.y
index 372f3a9..150fe71 100644
--- a/src/cli_parse.y
+++ b/src/cli_parse.y
@@ -34,6 +34,7 @@ static void cli_deferror(const char *);
%token SYNTAX
%token COMMIT
%token CHECK
+%token DUMMY
%left SEMI
%token <val>VALUE
%token <type>TYPE_DEF
@@ -100,8 +101,12 @@ cause: help_cause
| default_cause
| syntax_cause
| ACTION action { append(parse_defp->actions + $1, $2, 0);}
+ | dummy_stmt
;
+dummy_stmt: DUMMY STRING { /* ignored */ }
+ ;
+
help_cause: HELP STRING
{ parse_defp->def_node_help = $2; /* no semantics for now */
}