Discussion List Archives

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

Re: [ddlm-group] Use of elides in strings

A few points to consider:

James Hester wrote:
> 2. Character(s) used to indicate elision should be part of the string value
This does not specify where the elision character should be stripped. It 
could be done by the parser or the dictionary-level code. The rule only 
refers to the final string for the final output text, right?

> 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.

In both forms <reverse solidus><reverse solidus> should also be defined 
in order to allow a literal string that ends in <reverse solidus>. For 
example, a single <reverse solidus> character has to be written as "\\", 
to avoid eliding the close quote.

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.