3 Parses rtadvd configuration file
5 Author: Matt Dainty <matt@bodgit-n-scarper.com>
10 Each line represents a record consisting of a number of ':'-separated fields
11 the first of which is the name or identifier for the record. The name can
12 optionally be split by '|' and each subsequent value is considered an alias
13 of the first. Records can be split across multiple lines with '\'.
20 let empty = Util.empty
22 (* field must not contain ':' unless quoted *)
23 let cfield = /[a-zA-Z0-9-]+(#?@|#[0-9]+|=("[^"]*"|[^:"]*))?/
25 let lns = ( empty | Getcap.comment | Getcap.record cfield )*
27 let filter = incl "/etc/rtadvd.conf"
30 let xfm = transform lns filter
32 (* Local Variables: *)