[ctypes-users] Re: Alternatives to midl.exe
Brought to you by:
theller
From: Bill B. <bil...@bi...> - 2004-07-30 12:14:47
|
> On 29 Jul 2004 at 14:01, Thomas Heller wrote, in part: > > Let's make a deal - I'll write the Python typelib generator, which > creates a typelib from the ctypes.com usual interface definition, > and someone else writes a .H parser and generator ... I am planning to use a parser generator for this job, rather than a state machine plus REs, mainly because I think that I can make my results more maintainable. In particular I'm thinking of using TPG (the "Toy Parser Generator") by Christophe Delord, mostly because I seem to be making headway with it on the needed sections of the header files. I expect to render the parsings as simple objects named for the interfaces that they represent, with properties that provide GUIDs, parent interfaces, and descriptions of the interface's methods and properties. Would anyone care to comment before I begin in earnest? Bill |