@InProceedings{ PadovaniSacerdotiCoenZacchiroli04, author = {Luca Padovani and Sacerdoti Coen, Claudio and Stefano Zacchiroli}, title = {{A} {G}enerative {A}pproach to the {I}mplementation of {L}anguage {B}indings for the {D}ocument {O}bject {M}odel}, booktitle = {3rd International Conference on Generative Programming and Component Engineering (GPCE'04)}, year = {2004}, volume = {LNCS 3286}, pages = {469-487}, publisher = {Springer}, url = {http://www.di.unito.it/~padovani/Papers/lncs_3286.pdf}, doi = {10.1007/978-3-540-30175-2\_25}, abstract = {The availability of a C implementation of the Document Object Model (DOM) offers the interesting opportunity of generating bindings for different programming languages automatically. Because of the DOM bias towards Java-like languages, a C implementation that fakes objects, inheritance, polymorphism, exceptions and uses reference-counting introduces a gap between the API specification and its actual implementation that the bindings should try to close. In this paper we overview the generative approach in this particular context and apply it for the generation of C++ and OCaml bindings.} }