W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2009

Web IDL and arrays

From: Tim Renouf <tpr@aplixcorp.com>
Date: Fri, 30 Oct 2009 09:52:35 +0000
To: public-script-coord@w3.org
Cc: dom@w3.org, hendry@aplixcorp.com
Message-ID: <20091030095235.GG7283@aplixcorp.com>
Hi

I am Tim Renouf, the author of widlproc
http://widl.webvm.net/
a utility to parse Web IDL,
together with a subset of doxygen-like comment syntax used by OMTP BONDI
to specify its APIs.

Dom has tried it out on the Web IDL fragments in the Web IDL spec
itself, and got these errors:
http://www.w3.org/2009/07/webidl-check?doc=http%3A%2F%2Fdev.w3.org%2F2006%2Fwebapi%2FWebIDL%2F&output=html

Some of these are errors in the way that widlproc handles floating point
constants and the exception syntax. I have since fixed these.

But a couple are due to widlproc not accepting the array syntax:

    readonly attribute unsigned short[] numbers;

The problem is that the spec draft I am working with (30 September
editor's draft) does not have any grammar for array syntax, so I can't
see how it is intended to be parsed, and whether you can have array or
array, or array of sequence, or sequence of array, or array of null, etc
etc.

More fundamentally, I am not sure whether the omission of the grammar
for the array syntax is because arrays are in the process of being added
to the spec, or because they are in the process of being removed from
the spec.

Can anyone here help please ?

Thanks.

-tpr
Received on Saturday, 31 October 2009 14:54:00 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:02 UTC