Discussion List Archives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ddlm-group] Comment rules

CIF1 requires whitespace to precede the initial '#' in a comment. I 
asked about comments within lists and tables, including whether a 
comment can be preceded by one of the new single-character delimiters 
instead of whitespace. Herberts answer was that the preceding whitespace 
should be required only when needed to terminate a token preceding the 
comment, and not part of the actual comment syntax.

If CIF2 follows Herbert's proposal, it affects the definition of 
comments outside of lists/tables as well. CIF1 comments were defined 
according to the design that everything is whitespace delimited. In 
CIF2, that s not the case. However, the current design still requires 
whitespace between values, even if it would not be required for parsing, 
such as between two quoted strings.

Here are some possible choices for comments:
1. Keep the CIF1 syntax.
2. Whitespace is only needed to terminating the previous token (i.e. may 
be preceded by a close quote).
3. A comment must be preceded by whitespace or one of the single-letter 
delimiters [ ] { }, which have delimiter properties similar to whitespace.

Joe Krahn
ddlm-group mailing list

Reply to: [list | sender only]
International Union of Crystallography

Scientific Union Member of the International Science Council (admitted 1947). Member of CODATA, the ISC Committee on Data. Partner with UNESCO, the United Nations Educational, Scientific and Cultural Organization in the International Year of Crystallography 2014.

International Science Council Scientific Freedom Policy

The IUCr observes the basic policy of non-discrimination and affirms the right and freedom of scientists to associate in international scientific activity without regard to such factors as ethnic origin, religion, citizenship, language, political stance, gender, sex or age, in accordance with the Statutes of the International Council for Science.