]> git.ipfire.org Git - thirdparty/bird.git/commit
Conf: Allowing keyword redefinition
authorMaria Matejka <mq@ucw.cz>
Wed, 4 May 2022 10:24:30 +0000 (12:24 +0200)
committerMaria Matejka <mq@ucw.cz>
Wed, 4 May 2022 13:39:21 +0000 (15:39 +0200)
commitcce974e8ea992d0e6d2f649eca7880b436d91d71
tree64448636b2633ef429923eb3f9625b11e03f2b4a
parent8ebac84bc8d51e2404ce6d6dc5e35fb261830596
Conf: Allowing keyword redefinition

Some tokens are both keywords and symbols. For now, we allow only
specific keywords to be redefined; in future, more of the keywords may
be added to this category.

The redefinable keywords must be specified in any .Y file as follows:

  toksym: THE_KEYWORD ;

See proto/bgp/config.Y for an example.

Also dropped a lot of unused terminals.
13 files changed:
conf/cf-lex.l
conf/confbase.Y
conf/gen_keywords.m4
conf/gen_parser.m4
filter/config.Y
nest/config.Y
proto/babel/config.Y
proto/bgp/config.Y
proto/ospf/config.Y
proto/radv/config.Y
proto/rip/config.Y
sysdep/linux/netlink.Y
sysdep/unix/krt.Y