[Vala] bindings from vapi



I am planning to write a tool to generate bindings for Python/.NET/Perl/...

My idea is to parse the vapi files and based on the signatures of the functions create the necesary stub to have the bindings for other languages. GIR and related
are designed for GObject bindings.

What I'm thinking is to do the same for non-gobject bindings. This is because Vala (in vapi files) allows to describe in a much better way the function signatures
(like direction of refs, and out parameters) which C doesn't.

I wrote some manual proof of concepts and I think that .net, python and lua bindings
will be an easy task.

I had not written anything yet, but I'm really interested on this for many reasons, (some projects of mine) and I would like to know your opinion and tips about how to
face this.

Should I use libvala? like valadoc does? Is there any example code iterating over
methods, namespaces, arguments of signatures, etc..?

Thanks!

--pancake



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