W3C home > Mailing lists > Public > public-media-fragment@w3.org > March 2009

Re: Nifty ABNF tool, and error in ABNF syntax

From: Yves Lafon <ylafon@w3.org>
Date: Fri, 27 Mar 2009 09:15:32 -0400 (EDT)
To: Jack Jansen <Jack.Jansen@cwi.nl>
cc: Media Fragment <public-media-fragment@w3.org>
Message-ID: <Pine.LNX.4.64.0903270912070.16786@ubzre.j3.bet>
On Thu, 26 Mar 2009, Jack Jansen wrote:

> I came across a nitfy tool: abnfgen <http://www.quut.com/abnfgen>.
>
> It reads an abnf syntax and then generates random strings that adhere to that 
> syntax. Very handy to test a parser. Your syntax needed a bit of minor 
> massaging before abnfgen liked it, such as including the definitions for 
> pchar and such that you've included by reference, and getting rid of the 
> boring productions (like the non-media-fragment alternative in segment).
>
> One of the first things it did was point out a problem with the syntax, I 
> think:
> 	utf8string    = "'" *pchar "'"
> But: single quote is also part of pchar, so this would allow a production of 
> 'a'b', which I think is not what was intended.

Yes, we should define more explicitely what is allowed there and what 
needs escaping. We can do that later, and just put a note for now in the 
WD that it needs clarification like avoiding "'" inside the string.

> --
> Jack Jansen, <Jack.Jansen@cwi.nl>, http://www.cwi.nl/~jack
> If I can't dance I don't want to be part of your revolution -- Emma Goldman
>
>
>

-- 
Baroula que barouleras, au tiéu toujou t'entourneras.

         ~~Yves
Received on Friday, 27 March 2009 13:15:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 21 September 2011 12:13:32 GMT