summaryrefslogtreecommitdiffstats
path: root/proto/static/config.Y
diff options
context:
space:
mode:
Diffstat (limited to 'proto/static/config.Y')
-rw-r--r--proto/static/config.Y34
1 files changed, 34 insertions, 0 deletions
diff --git a/proto/static/config.Y b/proto/static/config.Y
new file mode 100644
index 0000000..a9eaa87
--- /dev/null
+++ b/proto/static/config.Y
@@ -0,0 +1,34 @@
+/*
+ * BIRD -- Static Protocol Configuration
+ *
+ * (c) 1998 Martin Mares <mj@ucw.cz>
+ *
+ * Can be freely distributed and used under the terms of the GNU GPL.
+ */
+
+CF_HDR
+
+#include "proto/static/static.h"
+
+CF_DECLS
+
+CF_KEYWORDS(STATIC)
+
+CF_GRAMMAR
+
+CF_ADDTO(proto, static_proto '}')
+
+static_proto_start: proto_start STATIC {
+ this_proto = proto_new(&proto_static, sizeof(struct static_proto));
+ static_init_instance((struct static_proto *) this_proto);
+ }
+ ;
+
+static_proto:
+ static_proto_start proto_name '{'
+ | static_proto proto_item ';'
+ ;
+
+CF_CODE
+
+CF_END