caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] If I wanted to write SWIG in OCaml, what library would I need?
@ 2013-01-27 23:57 Martin DeMello
  2013-01-28  0:15 ` yoann padioleau
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Martin DeMello @ 2013-01-27 23:57 UTC (permalink / raw)
  To: caml-list

No, I'm not planning on rewriting all of SWIG, but that was the
easiest way to explain what I wanted :) I'm looking for a library that
can work with C header files, including preprocessor directives, and
spit out a data structure that I can use to generate language
bindings. C++ support not necessary.

martin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Caml-list] If I wanted to write SWIG in OCaml, what library would I need?
  2013-01-27 23:57 [Caml-list] If I wanted to write SWIG in OCaml, what library would I need? Martin DeMello
@ 2013-01-28  0:15 ` yoann padioleau
  2013-01-28  0:22 ` Wojciech Meyer
  2013-01-28  8:49 ` David MENTRE
  2 siblings, 0 replies; 5+ messages in thread
From: yoann padioleau @ 2013-01-28  0:15 UTC (permalink / raw)
  To: Martin DeMello; +Cc: caml-list

I know this project. https://forge.ocamlcore.org/projects/cowboy/

On Sun, Jan 27, 2013 at 3:57 PM, Martin DeMello <martindemello@gmail.com> wrote:
> No, I'm not planning on rewriting all of SWIG, but that was the
> easiest way to explain what I wanted :) I'm looking for a library that
> can work with C header files, including preprocessor directives, and
> spit out a data structure that I can use to generate language
> bindings. C++ support not necessary.
>
> martin
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Caml-list] If I wanted to write SWIG in OCaml, what library would I need?
  2013-01-27 23:57 [Caml-list] If I wanted to write SWIG in OCaml, what library would I need? Martin DeMello
  2013-01-28  0:15 ` yoann padioleau
@ 2013-01-28  0:22 ` Wojciech Meyer
  2013-01-28  1:56   ` Martin DeMello
  2013-01-28  8:49 ` David MENTRE
  2 siblings, 1 reply; 5+ messages in thread
From: Wojciech Meyer @ 2013-01-28  0:22 UTC (permalink / raw)
  To: Martin DeMello; +Cc: caml-list

Martin DeMello <martindemello@gmail.com> writes:

> No, I'm not planning on rewriting all of SWIG, but that was the
> easiest way to explain what I wanted :) I'm looking for a library that
> can work with C header files, including preprocessor directives, and
> spit out a data structure that I can use to generate language
> bindings. C++ support not necessary.

You could just try caml-idl:

http://caml.inria.fr/pub/old_caml_site/camlidl/

--
Wojciech Meyer
http://danmey.org

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Caml-list] If I wanted to write SWIG in OCaml, what library would I need?
  2013-01-28  0:22 ` Wojciech Meyer
@ 2013-01-28  1:56   ` Martin DeMello
  0 siblings, 0 replies; 5+ messages in thread
From: Martin DeMello @ 2013-01-28  1:56 UTC (permalink / raw)
  To: Wojciech Meyer; +Cc: caml-list

On Sun, Jan 27, 2013 at 4:22 PM, Wojciech Meyer
<wojciech.meyer@gmail.com> wrote:
> Martin DeMello <martindemello@gmail.com> writes:
>
>> No, I'm not planning on rewriting all of SWIG, but that was the
>> easiest way to explain what I wanted :) I'm looking for a library that
>> can work with C header files, including preprocessor directives, and
>> spit out a data structure that I can use to generate language
>> bindings. C++ support not necessary.
>
> You could just try caml-idl:
>
> http://caml.inria.fr/pub/old_caml_site/camlidl/

I don't want to write OCaml bindings, I want to see if OCaml provides
a nicer way to write a binding generator than libclang does (I'm
betting the answer is yes). I took a look at cowboy, but it's pretty
undocumented, and depends on yacfe which is likewise undocumented :(

martin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Caml-list] If I wanted to write SWIG in OCaml, what library would I need?
  2013-01-27 23:57 [Caml-list] If I wanted to write SWIG in OCaml, what library would I need? Martin DeMello
  2013-01-28  0:15 ` yoann padioleau
  2013-01-28  0:22 ` Wojciech Meyer
@ 2013-01-28  8:49 ` David MENTRE
  2 siblings, 0 replies; 5+ messages in thread
From: David MENTRE @ 2013-01-28  8:49 UTC (permalink / raw)
  To: Martin DeMello; +Cc: caml-list

Hello,

2013/1/28 Martin DeMello <martindemello@gmail.com>:
> No, I'm not planning on rewriting all of SWIG, but that was the
> easiest way to explain what I wanted :) I'm looking for a library that
> can work with C header files, including preprocessor directives, and
> spit out a data structure that I can use to generate language
> bindings. C++ support not necessary.


Frama-C allows to work on C files but won't support preprocessor
(regular cpp is used).
  http://frama-c.com/

It is documented (see "Plug-In Development Guide"):
  http://frama-c.com/support.html

Best regards,
david

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-01-28  8:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-27 23:57 [Caml-list] If I wanted to write SWIG in OCaml, what library would I need? Martin DeMello
2013-01-28  0:15 ` yoann padioleau
2013-01-28  0:22 ` Wojciech Meyer
2013-01-28  1:56   ` Martin DeMello
2013-01-28  8:49 ` David MENTRE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).