From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7db300de5361ec09,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-30 13:54:54 PST Path: archiver1.google.com!news1.google.com!postnews1.google.com!not-for-mail From: ppearson@hiwaay.net (Paul F. Pearson) Newsgroups: comp.lang.ada Subject: Init file package avail? Date: 30 Nov 2001 13:54:54 -0800 Organization: http://groups.google.com/ Message-ID: NNTP-Posting-Host: 216.180.35.102 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1007157294 28416 127.0.0.1 (30 Nov 2001 21:54:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 30 Nov 2001 21:54:54 GMT Xref: archiver1.google.com comp.lang.ada:17248 Date: 2001-11-30T21:54:54+00:00 List-Id: Is there a package available to handle reading in from an intialization file? Preferrably, I'd like one that handles sections (sort of like the Windows INI file format). I started designing one, but thought I'd make sure I'm not reinventing the wheel. I'm including what I'd desinged. I like the capabilities, but don't require the actual "syntax." ------ begin top-of-my-head design ---------- #comments begin with hash (UNIX style) #for simplicity, I'd require comments to be on a seperate line [Section 1] field1 = value1 #note no terminator on above line [Section 2] #field name must only be unique within a section field1 = value2 field2 = [Section 1, field1] #a value can be a reference to another value. ------ end top-of-my-head design ---------- I've even thought about having a %use [Section 1] type of syntax to allow an entire section's fields to be "copied" into another section's "namespace".