lua-users home
lua-l archive

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


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