lua-users home
lua-l archive

Re: creating a table from a file

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


2014年01月25日 Rena <hyperhacker@gmail.com>:
> 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

AltStyle によって変換されたページ (->オリジナル) /