> On Mar 19, 2017, at 10:23 AM, Matt Wette <[email protected]> wrote: > > >> On Mar 13, 2017, at 5:53 PM, Matt Wette <[email protected]> wrote: >> >> >>> On Mar 8, 2017, at 6:06 PM, Matt Wette <[email protected]> wrote: >>> >>> I’m now working on a FFI helper based on the nyacc C99 parser. >> > > I am making some progress with some ragged prototype code.
I have issues with the bytestructures module: both it and (system foreign) use symbols like “double”. Probably need to rename somewhere. I can now autogenerate enough to successfully run the following program. (use-modules (cairo cairo)) (define srf (cairo_svg_surface_create "abc.svg" 200.0 200.0)) (define cr (cairo_create srf)) (cairo_move_to cr 10.0 10.0) (cairo_line_to cr 190.0 10.0) (cairo_line_to cr 190.0 190.0) (cairo_line_to cr 10.0 190.0) (cairo_line_to cr 10.0 10.0) (cairo_stroke cr) ;; need to add guardians? (cairo_destroy cr) (cairo_surface_destroy srf)
