[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Reply to: [list | sender only]
Re: [ddlm-group] Use of elides in strings
- To: Group finalising DDLm and associated dictionaries <ddlm-group@iucr.org>
- Subject: Re: [ddlm-group] Use of elides in strings
- From: "Herbert J. Bernstein" <yaya@bernstein-plus-sons.com>
- Date: Mon, 23 Nov 2009 18:42:42 -0500 (EST)
- In-Reply-To: <279aad2a0911231529h3bd3e0b6k98de25088410f536@mail.gmail.com>
- References: <C7306520.1258E%nick@csse.uwa.edu.au><572182.92308.qm@web87003.mail.ird.yahoo.com><279aad2a0911230240q278ab08fqc09349148202bed9@mail.gmail.com><4B0ABDF3.4090108@niehs.nih.gov><407817.81146.qm@web87008.mail.ird.yahoo.com><4B0B06A2.9050404@niehs.nih.gov><279aad2a0911231529h3bd3e0b6k98de25088410f536@mail.gmail.com>
I do not understand these versions of the proposals on the table and therefore cannot vote on them -- Herbert P.S. In the next try at this it might be wise to also figure out how line folding will be handled, inasmuch as Brian has said it is needed for the IUCr. ===================================================== Herbert J. Bernstein, Professor of Computer Science Dowling College, Kramer Science Center, KSC 121 Idle Hour Blvd, Oakdale, NY, 11769 +1-631-244-3035 yaya@dowling.edu ===================================================== On Tue, 24 Nov 2009, James Hester wrote: > Let's try to reinitiate the straw poll on the topic of elides in the > correct thread. For simplicity, I would like to restrict the vote to > single (') and double-quote(") delimited strings at this stage. > > Definitions: > > 'elide': a mechanism by which we can indicate that a character which > would normally terminate the string should not terminate the string, > but rather be included within it. > > 'lexing': the application of rules from the CIF2 syntax specification > to produce a set of tokens > > 'string value': the contents of a string token following lexing. > > Before getting into specifics, please vote on the following principles: > > 1. An eliding mechanism should be provided for CIF2 single and double > quote delimited strings. (yes/no) > > 2. Character(s) used to indicate elision should be part of the string value > > Now for the specifics: > > 3. Which of the following elision proposals do you support (more than one OK)? > > Proposal (a) (intended to correspond to Nick's) > (i) A character which would otherwise be interpreted as a delimiter > is elided by immediately preceding it with a reverse solidus. > (ii) Otherwise a reverse solidus in the string has no special > lexical significance. > > Proposal (b) > (i) The combinations <reverse solidus><quote> or a <reverse > solidus><double quote> always signify <quote> and <double quote> > respectively, regardless of the delimiter used in a particular string. > (ii) The combinations in (i) elide the <quote> or <double quote> > character where that character would otherwise terminate the string > (iii) Apart from (i) and (ii), the reverse solidus has no special > significance > (iv) If not used as the string delimiter, <quote> or <double quote> > when not preceded by <reverse solidus> represent themselves. > > ========= > My votes are as follows: > > 1. No elides > 2. Should not be part of the string value > 3. (a) > > > -- > T +61 (02) 9717 9907 > F +61 (02) 9717 3145 > M +61 (04) 0249 4148 > _______________________________________________ > ddlm-group mailing list > ddlm-group@iucr.org > http://scripts.iucr.org/mailman/listinfo/ddlm-group > _______________________________________________ ddlm-group mailing list ddlm-group@iucr.org http://scripts.iucr.org/mailman/listinfo/ddlm-group
Reply to: [list | sender only]
- References:
- Re: [ddlm-group] Use of elides in strings (Nick Spadaccini)
- Re: [ddlm-group] Use of elides in strings (SIMON WESTRIP)
- Re: [ddlm-group] Use of elides in strings (James Hester)
- Re: [ddlm-group] Use of elides in strings (Joe Krahn)
- Re: [ddlm-group] Use of elides in strings (SIMON WESTRIP)
- Re: [ddlm-group] Use of elides in strings (Joe Krahn)
- Re: [ddlm-group] Use of elides in strings (James Hester)
- Prev by Date: Re: [ddlm-group] Use of elides in strings
- Next by Date: Re: [ddlm-group] Use of elides in strings
- Prev by thread: Re: [ddlm-group] Use of elides in strings
- Next by thread: Re: [ddlm-group] Use of elides in strings
- Index(es):