lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi there !

I have plans to rewrite "dub", the bindings generator used with lubyk. The goal is to create a modular system for which it is easy to add new source types (swig %.i files, csv files, custom text, xml output from gcc or doxygen, etc) and output formats (C++ bindings, mvc doc website, static html documentation, etc).

As you see, the same tool will be used to create documentation and bindings, it will therefore also contain information on Lua methods (if we find/fix a good Lua doc parser).

The central part in this design is a database with the following schema:

Type: a namespace, class or native type, can be nested, contains functions
Function: a function or method, has a return_value and many arguments
Argument: has a Type, a name and a default value

The database is populated by parsing input formats (detecting insert/update), can be viewed with a simple web application and of course can be used to create bindings (virtually to any language) with some templates.

Compared to other binding systems, this will allow mixed Lua/C++ documentation, bindings for C++ super methods, namespaces, typedef resolution, pure Lua and ffi bindings when possible, etc. The 3 stages design will also ease using new output formats or changing the outputs.

Anyone to form a team ?

Cheers,

                                                               Gaspard