|Subject:||Re: Is there any tool that can automatically generate Prolog callable interface from C functions?|
|Date:||Sun, 13 Apr 2014 21:23:28 +0100|
I too wanted something like this a few months back as I was attempting to bind OpenGL with gprolog. Perhaps it might be easier to embed gprolog within the thing you are attempting to call instead, so for me, instead of creating an OpenGL binding I embedded gprolog within a C program that initialised the framework..
Maybe reading: http://www.swig.org/Doc3.0/SWIGDocumentation.html#Extending
And be the first to do it..that would be useful indeed!
My only idea would be to use the GNU compiler options to output the parse tree as an XML file and then use XSLT to do something clever like generating the interface definitions… I have heard that the gnu output is hard to deal with though..
On 11 Apr 2014, at 16:14, Shuai Wang <address@hidden> wrote:
|[Prev in Thread]||Current Thread||[Next in Thread]|