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,887e9a80ba7c6caf,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-27 06:10:34 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Grace.Config_Files comment syntax Date: 27 Jun 2003 09:01:48 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1056718938 13757 128.183.235.92 (27 Jun 2003 13:02:18 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 27 Jun 2003 13:02:18 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Xref: archiver1.google.com comp.lang.ada:39807 Date: 2003-06-27T13:02:18+00:00 List-Id: David Koogler has expressed an interest in getting comments working in Grace.Config_Files (see http://www.nongnu.org/Grace/Grace_Home.html; I've just improved it, and added the Config_Files requirements). The Config_Files requirements that we worked on here last year state that the Config_Files file format is the same as the Java Properties file format. Here's a reference for that: http://java.sun.com/j2se/1.4.1/docs/api/java/util/Properties.html (it's not very long, and the file format details are given in the documentation of the "load" method; go read it :). That says that comments are introduced by either "#" or "!", and terminated by end of line. Also, comments must be alone on a line; only whitespace can precede the comment symbol. That allows "#" and "!" in value strings without an escape mechanism. David also wants comments on the same line as a key/value pair. I think that's a bad idea, both because it is incompatible with the Java Properties definition, and because it complicates parsing the file. Unless someone has an objection, I'll incorporate this syntax for comments into the Config_Files requirements. There are other details of the Java Properties format that we don't currently follow; it provides a line continuation mechanism, allows either "=" or ":" for the key/value separator, and uses C escape characters in the value string. Anyone think those should be in Config_Files? We did say one advantage of picking a predefined format was interoperability; if we really believe that, we should simply adopt this definition completely. -- -- Stephe