Re: New grammar fragment for string in ixml grammar

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



-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.

Received on Thursday, 6 January 2022 09:59:07 UTC