Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
labs
BIRD Internet Routing Daemon
Commits
f142750d
Commit
f142750d
authored
Nov 27, 1998
by
Martin Mareš
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Base of the parser.
parent
82fc7be7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
conf/confbase.Y
conf/confbase.Y
+45
-0
No files found.
conf/confbase.Y
0 → 100644
View file @
f142750d
/*
* BIRD -- Configuration Parser Top
*
* (c) 1998 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
CF_HDR
#include "nest/bird.h"
#include "conf/conf.h"
CF_DECLS
%union {
int i;
ip_addr a;
struct symbol *s;
char *t;
}
%token END
%token <i> NUM
%token <a> IPA
%token <s> SYM
%token <t> TEXT
CF_GRAMMAR
config: conf_entries END {
return 0;
}
;
conf_entries:
/* EMPTY */
| conf_entries conf ';'
;
CF_ADDTO(conf, /* EMPTY */)
CF_CODE
CF_END
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment