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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________