Re: Introspection



On Mon, 2005-01-10 at 12:53 -0500, Matthias Clasen wrote:

> I think it would be good to go for a two-step approach here. Create the
> binary metadata from xml metadata. The xml metadata can either be
> handwritten, or created by header scanning, possibly supported by
> comments and overrides.

In case you aren't aware, Gtk# already has a source parser that produces
an xml representation. We also have a substantial amount of "massaging"
in place via an alteration markup to identify out/ref/array/nullok/etc
params that aren't detectable from the C source. 

It parses properties, methods, signals, virtual methods, constructors,
enums, callback types, interfaces, opaque/non-opaque structs,
private/public fields, deprecated api elements, and more that I'm not
remembering off the top of my head I'm sure.

The parser is written in perl, so there's no big scary dependencies
involved for it to be integrated into Gtk+ if so desired.  I'd be happy
to help make it work for your purposes if you'd like.
  
-- 
Mike Kestner <mkestner novell com>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]