Re: [Fwd: SPARQL: Backslashes in string literals]

On Thu, Aug 04, 2005 at 04:56:17 +0100, Andy Seaborne wrote:
> >so charmod says this should work:
> >
> > SELECT ?foo\x0045bar WHERE { ?foo\x0045bar dc:title ?xyz }.
> 
> We can do one of:
> 1/ Extend \u and \U to apply to variables
> 2/ Make it so \u is on input processing (before tokenizing)
>    so it works everywhere including comments and is transparent to
>    parsing proper
> 
> 1/ is probable clearer 2/ is probably easier to implement
> 
> A test is "SELEC\u0054"
> 
> Another is the comment
> 
>     # \u escapes need thinking about.
> 
> which is illegal by 2 but legal by 1.

Unless comment processing is also done on input (ala the C pre-processor)
I dont know if I like the idea of
	/* comment \u002A/
being a valid comment

- Steve

Received on Friday, 5 August 2005 09:05:18 UTC