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