Re: conf files.
From: Michael B. Allen (mba2000@ioplex.com)
Date: 04/24/03
- Next message: Michael Steinbauer: "Re: ncures and KEYxx"
- Previous message: scriptOmatic: "Re: ftp LIST in C"
- In reply to: Haran Shivanan: "Re: conf files."
- Next in thread: Fred L. Kleinschmidt: "Re: conf files."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Michael B. Allen" <mba2000@ioplex.com> Date: Thu, 24 Apr 2003 14:44:18 -0400
On Thu, 24 Apr 2003 14:14:44 -0400, Haran Shivanan wrote:
> Although, it would be nice if there was a library for parsing simple
> key=value #comment
> stuff.
Yup. Someone should do a little research and write an RFC or IETF draft
that explicitly defines formats with BNF grammers for a set of
organized data files like:
A simple Java Properties file format like you describe
!key1 = value1
key=value #comment
A Windows INI file format for a little more structure
[section]
key = value
And an X delimited values format like
miallen:x:500:500
or
one, two, "three ""still three"" more three"
passwd and CSV style. I have very small and simple state-machine parsers
for the first and last formats but they do not support unicode escapes
which I think would be required.
eg http://www.ioplex.com/~miallen/libmba/dl/src/cfg.c
Mike
-- A program should be written to model the concepts of the task it performs rather than the physical world or a process because this maximizes the potential for it to be applied to tasks that are conceptually similar and, more important, to tasks that have not yet been conceived.
- Next message: Michael Steinbauer: "Re: ncures and KEYxx"
- Previous message: scriptOmatic: "Re: ftp LIST in C"
- In reply to: Haran Shivanan: "Re: conf files."
- Next in thread: Fred L. Kleinschmidt: "Re: conf files."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|