Re: creating a table from a file
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: creating a table from a file
- From: Peter Melnichenko <petjamelnik@...>
- Date: 2014年1月26日 01:20:16 +0400
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