Re: eXene and openGL
brian <briand-/[email protected]>
| Newsgroups | gmane.comp.lang.sml.smlnj |
|---|---|
| Message-ID | <[email protected]> |
That would be great and solve the problem.
A while back I wrote a swig -> xml -> sxml -> gambit-C FFI generator.
I found swig to be quite robust.
That's because it could understand function definitions and such. It
didn't parse functions, but if they were in the include file, it
could at least get the declaration and skip over the rest.
ml-nlffigen doesn't like functions in the headers and it also doesn't
like:
__attribute__ (("whatever"))
Which I didn't even existed...
Brian
On Jan 5, 2007, at 6:21 AM, John Reppy wrote:
> BTW, since the CKit (and NLFFIgen) are originally part of the SML/NJ
> distribution,
> it would be helpful if you could redirect updates back to us.
>
> W.r.t. the CKit, Aaron Turon has been working on a new ml-antlr
> grammar for it, which
> should make supporting syntactic extensions much easier (ml-antlr
> supports modular
> specifications).
>
> - John
>
> On Jan 5, 2007, at 4:22 AM, Vesa Karvonen wrote:
>
>> Quoting Matthew Fluet <[email protected]>:
>> [...]
>>>> It might be possible to improve ml[-]nlffigen in this respect in
>>>> various
>>>> ways (e.g. implement common extensions and make it deal more
>>>> gracefully
>>>> with partial information and errors).
>>>
>>> You'd probably need to improve both the C Kit and ml[-]nlffigen to
>>> handle various extensions.
>>
>> Yes, I already took a look at the C Kit and mlnlffigen sources in
>> the MLton
>> source tree awhile back [1] to estimate how difficult it would be
>> to add
>> support for calling convention specifiers and identified a few
>> places (in
>> the C Kit parser, AST, and mlnlffigen) that would need to be
>> modified.
>>
>> -Vesa Karvonen
>>
>> [1] http://mlton.org/pipermail/mlton/2006-November/029351.html
>>
>> ---------------------------------------------------------------------
>> -
>> ---
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to
>> share your
>> opinions on IT & business topics through brief surveys - and earn
>> cash
>> http://www.techsay.com/default.php?
>> page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Smlnj-list mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/smlnj-list
>
>
> ----------------------------------------------------------------------
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Smlnj-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/smlnj-list
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV