Subj : jsgen-a spidermonkey wrapper/code generator, comments? To : netscape.public.mozilla.jseng From : Marcello Bastea-Forte Date : Thu Dec 18 2003 02:50 pm Hey all, I've recently been working with spidermonkey as a scripting language for game development, and after looking at the different "tutorials" on interfacing between C++/JavaScript on mozilla.org and elsewhere, I decided to write a little program that does all the interfacing for you. In a nutshell it takes a C++ header file with a class definition in it, and generates code that you can #include into your .h and .cpp for the class that wraps all marked functions, variables, and constructors. I've been working on it for the past couple days, and finally have a version worth using. I put the readme online: http://www.cs.unm.edu/~cello/jsgen/ and you can download it here: http://www.cs.unm.edu/~cello/jsgen/download/ Feature-wise, I think it's fairly complete, I still don't quite understand all the spidermonkey systems, so it's probably lacking in things I'm not familiar with. I haven't tested it with my own actual game code yet, but that's the next step. It seems to work well enough with the test classes I made. So if you have any suggestions, comments, input, criticism, please let me know. :-) Also, I've only tested this on windows, although the program itself uses all standard C++ classes (I think), so if anyone gets it to work on something else, let me know. Thanks, Marcello .