Statistics
| Branch: | Revision:

iof-bird-daemon / conf / confbase.Y @ f142750d

History | View | Annotate | Download (522 Bytes)

1
/*
2
 *	BIRD -- Configuration Parser Top
3
 *
4
 *	(c) 1998 Martin Mares <mj@ucw.cz>
5
 *
6
 *	Can be freely distributed and used under the terms of the GNU GPL.
7
 */
8

    
9
CF_HDR
10

    
11
#include "nest/bird.h"
12
#include "conf/conf.h"
13

    
14
CF_DECLS
15

    
16
%union {
17
  int i;
18
  ip_addr a;
19
  struct symbol *s;
20
  char *t;
21
}
22

    
23
%token END
24
%token <i> NUM
25
%token <a> IPA
26
%token <s> SYM
27
%token <t> TEXT
28

    
29
CF_GRAMMAR
30

    
31
config: conf_entries END {
32
	return 0;
33
   }
34
 ;
35

    
36
conf_entries:
37
   /* EMPTY */
38
 | conf_entries conf ';'
39
 ;
40

    
41
CF_ADDTO(conf, /* EMPTY */)
42

    
43
CF_CODE
44

    
45
CF_END