summaryrefslogtreecommitdiffstats
path: root/mmss
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-03-23 22:18:29 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-03-23 22:18:29 +0100
commitcbbfe4360d95294d792956df43df4a72854a8e80 (patch)
treece1fcba602a9a67bd5d489a0f8e71d8ef1f4d1a0 /mmss
parentaa20bcc6eb539ab1d6a9490e1843f9ab1e025155 (diff)
downloadgmrf-cbbfe4360d95294d792956df43df4a72854a8e80.tar
gmrf-cbbfe4360d95294d792956df43df4a72854a8e80.zip
config: allow to omit empty network sections
Diffstat (limited to 'mmss')
-rw-r--r--mmss/config.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/mmss/config.y b/mmss/config.y
index 63bfcb8..90b2a9e 100644
--- a/mmss/config.y
+++ b/mmss/config.y
@@ -97,7 +97,7 @@ config: config statement
|
;
-statement: TOK_NETWORK network '{' network_config '}'
+statement: TOK_NETWORK network network_tail
| TOK_PROTOCOL protocol ';'
| TOK_NODE node '{' node_config '}'
;
@@ -108,6 +108,10 @@ network: TOK_STRING {
}
;
+network_tail:
+ '{' network_config '}'
+ | ';'
+
network_config: network_config network_statement
|
;