The toml
library written in C
exports interfaces for Lua
to use.
cd lua-toml
and make build
-
use
toml.load(config_string)
to loadtoml
string and returntable
. -
use
toml.loadfile(config_filename)
to loadtoml
file and returntable
.
Please refer to the test.lua
file.