Original Post
I was wondering if there was any interest in an automatic AS binding generator. As a basis for the bindings, I would use the pdb file that MSVC generates (by using the DIA SDK). The tool would read the pdb and output either of these formats: 1. A C++ file that can be compiled into your project would would contain all the required binding code. This would require you to compile your project twice: once for generating the pdb and parsing it and a second time for linking in the generated .cpp file. I'm not sure how well this would integrate with build systems. The advantage would be that this file can easily be used by other operating systems besides windows. 2. A sort of serialized version of the internal AS state. All information that is required is contained in the pdb file. The advantage of this approach would be that you only have simple postprocessing step. On the other hand, this file would probably expose more information that you want about the internals of your program. This file would also only be usable on windows (since it contains function pointers, etc.) A small description file would specify which classes/functions should be included. I haven't started any actual implementations, so I'd like to get some feedback on this idea before I start on this. If I still have some time after this is finished, I might try using an approach based on the actual source (probably using GCC-XML). But since this would probably be harder to do and not be as reliable (calling conventions, ...?), I'd prefer to use the pdb approach first.