Board Thread:Lua Help/@comment-3134670-20160316163541

Hi there, I'm still trying out lua modules, this time to generate a whole page.

Some sections of the page will need sub-arguments and after thinking about it: "hmm, lua assignments should be compatible with template arguments". They are indeed compatible, so this is an intuitive strategy.

With  and   this would be trivial, but   isn't available.

This means that a parser for the assignment part of the lua language needs to be built. Since programming language parsers can be tricky to build, I'd like to avoid making one if it already exists. =

-

In short, I want to know if there is a module that can turn the arguments received like so: into the lua table: {   "direct index, keeps newline\n", "index", {       key = "key in index table" },   ["a key"] = "string key", key = "key", table = { "index in table", ["a key"] = "string key in table", key = "key in table", otherkey = "key in string table", }, }  