Re: Turtle BNF from current Turtle working draft

On Sun, Jul 10, 2011 at 2:52 PM, Gregg Kellogg <gregg@kellogg-assoc.com> wrote:
> Not sure this will make it through to the mailing list, so I thought I'd
> send directly.
>
... snip ..

> Hi, I was looking at the grammar [1] from the latest Turtle working draft [=
> 2] with an eye towards implementing a parser based on work I've done previo=
> usly in Ruby on N3 and SPARQL parsers [3][4].

Great! Thanks.

>
> To get started, I was going to attempt to create turtle-bnf using bnf2turtl=
> e.py [5], as is done in the existing SWAP grammar implementation. Doesn't s=
> eem that this parses properly. Is it intended to? Is there another processo=
> r that's more appropriate? I realize I'm jumping the gun a bit, as it hasn'=
> t yet been published, but I wanted to see if this grammar is intended to be=
> processed using the existing SWAP toolset.

On first glance it seems that the existing SWAP toolset is unable to
parse @pass segments from the EBNF grammar. I think the only tool
currently used to parse the raw EBNF is yacker
http://www.w3.org/2005/01/yacker/uploads/turtle2?lang=perl Sorry I
can't be more enlightening at the moment.

--Gavin

>
> Gregg Kellogg
>
> [1] http://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/turtle.bnf
> [2] http://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/index.html
> [3] https://github.com/gkellogg/rdf-n3
> [4] https://github.com/gkellogg/sparql-grammar
> [5] http://www.w3.org/2000/10/swap/grammar/ebnf2turtle.py
>
>
>
>

Received on Monday, 11 July 2011 15:52:49 UTC