Parser for DL interface

Hello!

Has anyone created a Ruby script to auto-generate structs
and enums for the Ruby/DL interface?

I am thinking of creating a minimalistic parser for such
a task. Would be something like this be usefull?

Regards,

···


University of Athens I bet the human brain
Physics Department is a kludge --Marvin Minsky

In article 20040415012927.GA807@velka.phys.uoa.gr,

Hello!

Has anyone created a Ruby script to auto-generate structs
and enums for the Ruby/DL interface?

I am thinking of creating a minimalistic parser for such
a task. Would be something like this be usefull?

You mean it would parse the .h files to find structs and enums and then do
the proper conversions for use with Ruby/DL? That would be very useful.
Please do it :slight_smile:

BTW: I went to our local PerlMongers meeting last night because there was
a presentation on Parrot. The goal of Parrot’s dynamic loader (to load
shared libs) was to make even easier/better than Ruby’s (Ruby was
considered the best model). So it seems that they’re planning to add
something like you mention to Parrot.

Phil

···

Elias Athanasopoulos elathan@phys.uoa.gr wrote:

Yes. I will give it a try.

Regards,

···

On Fri, Apr 16, 2004 at 03:54:15AM +0900, Phil Tomson wrote:

You mean it would parse the .h files to find structs and enums and then do
the proper conversions for use with Ruby/DL? That would be very useful.


University of Athens I bet the human brain
Physics Department is a kludge --Marvin Minsky

Yes. I will give it a try.

Wonderful! Please hurry :wink:

– shanko

···

Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html