[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: Sun, 26 Jan 2014 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