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. ~~YvesReceived on Friday, 27 March 2009 13:15:44 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 March 2009 13:15:46 GMT