Discussion List Archives

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

RE: Parsing of comments in BNC definition

  • Subject: RE: Parsing of comments in BNC definition
  • From: Nick Spadaccini <nick@xxxxxxxxxxxxx>
  • Date: Mon, 4 Dec 2000 01:37:56 GMT
On Wed, 29 Nov 2000, Bollinger, John Clayton wrote:

> [James Hester wrote:]
> > > The beginning of a file would have to have honorary 'terminate'
> > > status, otherwise a hash as first character in the file 
> > wouldn't count
> > > as a comment.  

I will cover this case with a prose explanation in the BNF.

> Here's another complication I just noticed: in the current BNF,
> whitespace is permitted only within the context of a data block
> production.  That's a fairly minor detail, but it does mean that no
> whitespace of any kind can be present in a CIF without any data block.
> I don't think that is the correct behavior; it is certainly not
> consistent with the canonical results included with Brian's ciftest
> suite.

Yes, this means a file devoid of any data blocks, a legitimate CIF file,
can't contain comments.

> It appears that this could be corrected by moving the <wspace>* from
> the beginning of the <data_block> production to the beginning of the
> <CIF_file> production.  The <data_block> production already handles

This is where I should have placed my correction in the first place. I put
it with the <data_block> production so the first data block could be
preceded by a comment. As you note I should have put it in the <CIF_file>
I will make these changes now.



Dr Nick Spadaccini
Department of Computer Science &            voice: +(61 8) 9380 3452
Software Engineering                          fax: +(61 8) 9380 1089
University of Western Australia              
CRAWLEY, Perth,  WA  6009                  email: nick@cs.uwa.edu.au
AUSTRALIA                                 w3: www.cs.uwa.edu.au/~nick

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.