This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

code generator for guile primitives (guile-interface.el)



>i found it tedious to constantly code the SCM_PROC's and SCM_ASSERT's
>required for a new guile primitive, so i added a c code generator to
>guile-interface.el.  the code generator queries the user for the
>scheme name of the new primitive, and the name and type of each of the
>primitive's arguments.  the querying for types supports completion.
>new smobs are easy to add.

Something about this approach strikes me as horribly wrong, but I love
it.  (And have done slightly worse things myself.)