Date: Fri, 12 Dec 1997 18:06:00 -0600 From: Jacques Vidrine <n@nectar.com> To: Dan Nelson <dnelson@emsphone.com> Cc: Jonathan Mini <j_mini@efn.org>, Adam Turoff <AdamT@smginc.com>, jkh@time.cdrom.com, freebsd-hackers@FreeBSD.ORG Subject: Re: Kernel Config datafile... Message-ID: <199712130006.SAA00398@kai.communique.net> In-Reply-To: <19971212172140.57212@emsphone.com> References: <34918F3E@smginc.com> <19971212141538.57181@micron.mini.net> <19971212172140.57212@emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Boy, I'd hate to have to deal with that mess. There's was recently a debate on one of the Python mailing lists on whether to use XML for "doc strings" (structured comments that become part of the actual code). It was pretty much rejected because it was too much typing. :-) I want human readable, human writable, and easy to parse. What was wrong with the current config file format, again? :-) Just kidding, I know the answer. Perhaps something more like structured text, such as an example someone gave earlier. Or maybe a bit like XF86Config, or like the stanzas seen in some AIX system files or Windows 3.x INI files. A template: sio: parent = isa? port = 0x3f8 "COM1", 0x2f8 "COM2", 0x3e8 "COM3", 0x2e8 "COM4", \ integer "OTHER" tty = true flags = 0x00001 "Shared IRQs", 0x00002 "Disable FIFO", ... irq = 3 "COM2 or COM4", 4 "COM1 or COM3", any "OTHER" vector = siointr A specific instance: sio0: description = "Standard Serial Port" parent = isa port = 0x3f8 flags = 0x00001 irq = 4 I dunno, just thinking. I want something easy for ME to parse too :-) Jacques Vidrine <n@nectar.com> On 12 December 1997 at 17:21, Dan Nelson <dnelson@emsphone.com> wrote: > The web server Roxen uses a similar format for its configuration files. > I don't know if it's truly SGML, or just easy for the web server to > parse.. For example, here's a snippet from the part of the file that > enables user directories: > > <region name='userfs#0'> > <var name='dir'> <str>/public_html/</str> </var> > <var name='put'> <int>0</int> </var> > <var name='mountpoint'> <str>/~</str> </var> > <var name='banish_list'> > <a> > <str>root</str> > <str>daemon</str> > <str>bin</str> > <str>sys</str> > </a> > </var> > </region> > > Every tag has an open and a close tag, <var name=""> defines a variable > name, and the data inside defines its type. <a></a> is an array > container. > > -Dan Nelson > dnelson@emsphone.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712130006.SAA00398>