Parsing C -> Generating DLL/DLM [message #56012] |
Wed, 26 September 2007 07:22  |
Thomas Doering
Messages: 3 Registered: September 2007
|
Junior Member |
|
|
Hey folks,
some months ago I started this little project. The task was (and is):
Parse a c-header for class and function declarations and generate a
cpp-code and a dlm file. One should be able to compile the cpp
instantly as DLL and use it in combination with the DLM as IDL-
Interface for the declared classes and functions.
Well, a beta of the actual development state can be found here (http://
www.doering-thomas.de/page.php?seite=1&sub=6&lang=de ) under
"genICET" ("generate Idl C Export Template").
This should parse header files, list every function or class
definition and generates the cpp and dlm source. (Simple) Sample is
included.
I hope it is usefull. For me it is ;-)
Note: The used C(++)-Parser is selfmade and, lets say, VERY ...
"simple". Which means: Could be VERY buggy. If anyone can provide a
better alternative (which is easy to handle, since I'm not quite a C(+
+)-expert) please let me know.
Greetings from Germany,
Thomas.
|
|
|
Re: Parsing C -> Generating DLL/DLM [message #56055 is a reply to message #56012] |
Fri, 28 September 2007 00:08  |
Thomas Doering
Messages: 3 Registered: September 2007
|
Junior Member |
|
|
Hey,
at the first glance, swig seems to be promising.
As I said. The tool already works... and fine for me. Peronally I
don't have any problems with the parser, but this may be due to my own
programming style.
It would be great if someone could give any feedback on this. I know,
there's a lot of work to do. And it would be great if I knew what
work ;-)
Greetings,
Thomas.
|
|
|