Revision bc2fb680 conf/gen_parser.m4

View differences:

conf/gen_parser.m4
2 2
#
3 3
#	BIRD -- Generator of Configuration Grammar
4 4
#
5
#	(c) 1998 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
5
#	(c) 1998--1999 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
6 6
#
7 7
#	Can be freely distributed and used under the terms of the GNU GPL.
8 8
#
......
38 38
m4_define(CF_ADDTO, `m4_define([[CF_rule_$1]],m4_ifdef([[CF_rule_$1]],CF_rule_$1 | ,[[m4_define([[CF_dyn_rules]],CF_dyn_rules[[CF_RULE($1)
39 39
]])]])$2)DNL')
40 40

  
41
# CLI commands
42
m4_define(CF_CLI, `m4_define([[CF_cmd]], cmd_[[]]m4_translit($1, [[ ]], _))DNL
43
m4_divert(2)CF_KEYWORDS(m4_translit($1, [[ ]], [[,]]))
44
m4_divert(3)CF_ADDTO(cli_cmd, CF_cmd)
45
CF_cmd: $1 ')
46

  
41 47
# After all configuration templates end, we finally generate the grammar file.
42 48
m4_m4wrap(`
43 49
m4_divert(0)DNL

Also available in: Unified diff