From: <ma...@go...> - 2007-03-15 03:32:00
|
> I'm having a hard time finding a place to start getting my feet wet in > the SWIG source code. > > While I'm sending this I might as well introduce myself. I'm a > long-time SWIG user, mostly for Python, a bit for Lua. I've just added > a preliminary implementation of dynamic library loading to Mozilla's > Javascript library. Now I want to add Javascript support to SWIG. > SWIG's Javascript back-end will strongly resemble that of Lua, I > believe. I noticed that the Lua code in SWIG began as a copy of SWIG's > tcl code, but I honestly haven't been able to discern much more than > that. > > Well I hope someone can help me find some good documentation. Thanks > for any help in advance! > Hello Donny, It was about two years back, when I started with the SWIG-lua bindings, and yes it did start as a rehash of the tcl bindings. As I was writing it, I left lots of comments (useful and otherwise) in the lua.cxx file, which you might find useful. I would refer you to the manual/extending.html which has a section on writing as language module. Some of the original stuff was written by some of the core developers, and I added a chunk to it. I think that might help. Please get stuck in and just give it a bash. Let me (and the rest of the list) know if you have any good progress, or issues. I am happy to help. Regards, Mark |