[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 <[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