[plt-scheme] [ANN] Super C --- Integrated Scheme and C programs
I just realized a new, evil, package.
http://planet.plt-scheme.org/display.ss?package=superc.plt&owner=jaymccarthy
Here's a sample:
#lang planet jaymccarthy/superc
(define main (get-ffi-obj 'main this-lib (_fun -> _int)))
(display (main))
@-------------------------------@
#include <stdio.h>
int main(void)
{
int x = 0;
printf("hello, world\n");
scanf("%d", &x);
printf("you typed: %d\n", x);
return 1;
}
--
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://teammccarthy.org/jay
"The glory of God is Intelligence" - D&C 93