8 Dec
2008
8 Dec
'08
8:37 a.m.
Michail Vidiassov wrote:
Dear All,
I need to fill a lua table with data, and some values may be tables. How to supply that data from ConTeXt? The most straightforward way is to make user fill a string with lua code of table initiaiser and then use "loadstring".
That is probably what I would do. But if that was too error-prone, I would most likely write a small syntax of my own and parse it with lpeg or use an xml-based format. Personally, I find api-based data interfaces clumsy and at least as error prone as syntax-based ones. Best wishes Taco