Web IDL and arrays

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