config: allow to omit empty network sections

This commit is contained in:
Matthias Schiffer 2014-03-23 22:18:29 +01:00
parent aa20bcc6eb
commit cbbfe4360d

View file

@ -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
|
;