octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementing loadlibrary, calllib, etc.


From: Ryan Rusaw
Subject: Re: Implementing loadlibrary, calllib, etc.
Date: Wed, 24 Mar 2010 13:15:49 -0600

Another option would be to use the libraries from the clang compiler
project, http://clang.llvm.org/index.html, to parse and extract the
necessary information from the header files.

On Wed, Mar 24, 2010 at 8:53 AM, John W. Eaton <address@hidden> wrote:
>
> On 24-Mar-2010, John Swensen wrote:
>
> | I ended up finding a wrapper around the GCC parser that parses a
> | header or source file into XML, intuitively called gcc-xml.  This
> | will be the perfect way of doing things.  It supports GCC,
> | VisualC++, Borland, Intel, and SGI, so I think it should work for
> | the most used platforms.  The XML nature of the output also makes it
> | very each to traverse the file and determine the parameter and
> | return types, datatypes in structures, following typedefs back to
> | what they call a 'FundamentalType', etc.  Then FFCALL should make it
> | easy to implement the calling procedures.
>
> Is there nothing simpler that could be used just for parsing
> declarations?  Doesn't swig perform a similar task?  What does it use?
>
> | I plan on implementing just the simple case of scalar variables,
> | then moving on to arrays/pointers, then working on structures.
>
> I encourage you to propose patches and get feedback from the list as
> you work on this.  I think it would be best to merge small parts
> incrementally rather than waiting until you have all parts of it
> finished.
>
> jwe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]