lua-users home
lua-l archive

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


2014-01-25 Rena <[email protected]>:
> If you can trust the input, you can use loadfile() to execute the entire
> file. Otherwise you need to parse it and build the table yourself.

If you can't trust the input, you can use literal.eval_config from a library I've recently published on luarocks: https://github.com/mpeterv/literal

Peter