Representation of strings and characters in XML version of ixml

In the grammar for ixml, strings are distinguished on their external 
representation. (To help with round-tripping)
In particular: @dstring and @sstring have the same semantic, but represent 
"string" or 'string'.

However there are two exceptions: @from and @to of a range, which hold a 
single character, and don't reflect their external representation.

In a range like ["a"-'z'],  you get <range from='a' to='z'>
and in a range like [#a-#f] you get <range from='#a' to='#f'>

1. You can't round-trip the representation and
2. You need to look at the content of the @from and @to to know whether it 
is a straight character or an encoded one.

Do we care either way?

1. We could merge dstring and sstring, if we don't care about external 
representation.

or alternatively

2. We could split @from and @to into their 3 cases.

sfrom, dfrom, hfrom

<range dfrom='a' sto='z'>
<range hfrom='a' hto='f'>
  
Preferences?

Steven

Received on Friday, 24 December 2021 14:26:34 UTC