lua-users home
lua-l archive

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


tolua 5.0 (alpha) is now available at:
            http://www.tecgraf.puc-rio.br/~celes/tolua/
            ftp://ftp.tecgraf.puc-rio.br/pub/celes/tolua/tolua.tar.gz

tolua is a tool that greatly simplifies the integration of C/C++ code
with Lua. Based on a "cleaned" header file, tolua automatically generates
the binding code to access C/C++ features from Lua. Using Lua-5.0 API and
tag method facilities, the current version automatically maps C/C++
constants, external variables, functions, namespace, classes, and methods
to Lua. It also provides facilities to create Lua modules.

tolua 5.0 is base on Lua 5.0. The main improvements comprise (thanks to users' suggestions):
- support for nested modules
- support for namespace
- support for union
- support for nested classes
- support for type renaming
- support for automatic renaming based on pattern matching
    + for instance, to eliminate a "gl" prefix we can add: $renaming ^gl @
- option to avoid dynamic type checking by defining TOLUA_RELEASE
- several bugs fixed

Incompatibility:
- In .pkg files, the syntax to include/embed files has changed:
    + use $cfile "filename" to embed a tagged header file
    + use $pfile "filename" to include other .pkg file
    + use $lfile "filename" to embed Lua code into the generated code
    + use $[ ... ] to embed a Lua fragment code
    + use $< .... > to embed a C fragment code into the package open function

- In .lua files:
     + static methods should be called with a colon: myClass:myMeth (...)
     + numbers are not accepted as booleans

Bug reports and suggestions are very welcome.

-- Waldemar