lua-users home
lua-l archive

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


On Thu, Jan 23, 2014 at 2:13 PM, Daurnimator <quae@daurnimator.com> wrote:
> On 24 January 2014 07:53, Luiz Henrique de Figueiredo
> <lhf@tecgraf.puc-rio.br> wrote:
>> Yeah, I know... I'll see what I can do. Thanks again.
> <foo qwe="rty">text<bar/>more</foo> looks like: {
>     name = "foo";
>     attr = { qwe = "rty" };
>     tags = {
>         { name = "bar" , attr = {} , tags = {} } ;
>     } ;
>     "text";
>     { name = "bar" , attr = {} , tags = {} } ; -- Same object as above
>     "more";

This is more or less what I was suggesting as being workable but not
particularly elegant.

Of course, this tradeoff is why JSON is a thing.

/s/ Adam