[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Using Lua for config files
- From: Pierre-Yves Gérardy <pygy79@...>
- Date: Thu, 19 Dec 2013 03:16:46 +0100
Guys, I believe you missed my other post... unless you need more than
JSON-like documents, that's what you're looking for.
"lutn" looks for the "function" keyword, first with string.find, and
then, if needed, with a custom parser that eliminates false positives
in strings and comments. It then prepends a "return ", optionally adds
an environment, strips or replaces the string metatable __index, and
loads the result.
-- Pierre-Yves