lua-users home
lua-l archive

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


> I'd like to use lua as a configure file in a C program.

I'm probably missing something but you can just write your configuration
in Lua and load it in C using the C API, with say luaL_dofile. In the
simplest case, the configuration file will just define some global
variables in Lua which can get read in C with lua_getglobal.