Re: Checking: Turtle grammar / N-Triples Grammar

* Andy Seaborne <andy.seaborne@epimorphics.com> [2012-05-16 15:29+0100]
> > Does that grammar look good to you?
> 
> I took that mesage to be reporting to the WG.

Yeah, I should have found some time to bring that into the Turtle spec before someone (you) reviewed. Sorry!

> I was reviewing the doc to be put to the WG in case that helped.
> 
> > Note a challenge to IRIREF below.
> 
> >[[
> >   Simplified IRIREF from
> >    [132s] IRIREF ::= ('<' ([^<>"{}|^`\]-[#x00-#x20])* | UCHAR '>')
> >   to
> >    [132s] IRIREF ::=  '<' ([^#x00-#x20<>\"{}|^`\\] | UCHAR)* '>'
> >   (#sec-notation doesn't tell me the precedence of A | B - c)
> >]]
> 
> The key is that UCHAR was outside the * so the token rule is wrong.
> 
> Your:
> 
> '<' ([^#x00-#x20<>\"{}|^`\\] | UCHAR)* '>'
> 
> fixes that.

yeah, this should also remind us to make sure there are tests for UCHARs in the test suite. that would have been an embarassing erratum.

> 	Andy

-- 
-ericP

Received on Wednesday, 16 May 2012 19:02:05 UTC