W3C home > Mailing lists > Public > public-linked-json@w3.org > January 2013

RE: JSON-LD grammar

From: Markus Lanthaler <markus.lanthaler@gmx.net>
Date: Tue, 8 Jan 2013 12:12:17 +0100
To: "'Eric Prud'hommeaux'" <eric@w3.org>
Cc: <public-linked-json@w3.org>, "'RDF WG'" <public-rdf-wg@w3.org>
Message-ID: <014c01cded91$065cd380$13167a80$@lanthaler@gmx.net>
On Sunday, January 06, 2013 12:07 AM, Eric Prud'hommeaux wrote:
> I like it! It reminds me of RNC (my favorite schema language).
> You could change "(0..1)" to "?".
> It should be pretty easy to compile that into an actual yacc parser à
> la
> http://www.w3.org/2005/01/yacker/uploads/results_JSON?lang=perl&markup=
> html
> to verify and to have a speedy parser.

Unfortunately I haven't worked with yacker yet. Would be awesome if someone familiar with it could give it a try.

The thing is that with these parser generators you also need to define the JSON itself which we assume as given. This blows the grammar up more than necessary I think.

Anyway, thanks for the link! I will see if I find some time to play with this in the coming weeks.


Markus Lanthaler
Received on Tuesday, 8 January 2013 11:12:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:18:35 UTC