Re: New grammar fragment for string in ixml grammar

I think the grammar already covers that.
Steven

On Thursday 06 January 2022 10:58:44 (+01:00), Dave Pawson wrote:

 > Is it possible to use something to cater for varying \n combinations and
 > let the OS select appropriately?
 >
 > regards
 >
 > On Thu, 6 Jan 2022 at 09:54, Steven Pemberton <steven.pemberton@cwi.nl> 
wrote:
 > >
 > > If we agree on eliminating the difference between dstring and sstring, 
here is the proposed change to the relevant part of the grammar (the 
difference is in @string):
 > >
 > > -terminal: literal;
 > > charset.
 > > literal: quoted;
 > > encoded.
 > > -quoted: (tmark, s)?, string, s
 > >
 > > @tmark: ["^-"].
 > > @string: -'"', dchar+, -'"';
 > > -"'", schar+, -"'".
 > > dchar: ~['"'; #a; #d];
 > > '"', -'"'. {all characters except line breaks; quotes must be doubled}
 > > schar: ~["'"; #a; #d];
 > > "'", -"'". {all characters except line breaks; quotes must be doubled}
 > > -encoded: (tmark, s)?, -"#", hex, s.
 > > @hex: ["0"-"9"; "a"-"f"; "A"-"F"]+.
 > >
 > > Steven
 >
 >
 >

Received on Thursday, 6 January 2022 12:40:04 UTC