On Thu, Feb 05, 2004 at 11:04:40AM +0100, Jens Rieks wrote:
> > I thought of that too. A Perl script that takes a C struct and emits an > > *ManagedStruct initializer. WRT align: as such struct initializers are > > in library code and used by different machines, I'd rather have the > > alignment calculation inside the unmanagedstruct.pmc.
> I'am currently writing a simple C-parser in imc. My plan is to extract all > structs, enums, unions and typedefs in order to create ManagedStructs > automatically. > If one goes even a step further, it should even be possible to create pasm/imc > wrapper for C functions automatically. > The tokeniser is already working, but the token processing is of course not > very simple, but I think I will have a first working alpha version within the > next few days.