lua-users home
lua-l archive

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

On 6/8/12, steve donovan <> wrote:
> On Thu, Jun 7, 2012 at 7:51 PM, Thijs Schreijer <>
> wrote:
>> I made one as well once, and failed on numeric keys like this one;
> Ah, but then you would need to extend the meaning of 'path' like so
> '[1].two' (because '1.two' means t['1']['two'])
> Hidden in here is the potential for a XPath-like generalized notation,
> which could do simple conditional extraction.
> steve d.

Just the other day I was thinking about something just like this. And
then it could be plugged into something like a XSLT to make
transformations between Lua table graphs. I was considering something
like this to be used in manipulations of parse trees.

Basically redo a given part of the XML ecossystem without XML :-)

(This was triggered with the realization that I was constructing SQL
queries that would just a second later be parsed by a RDBMS -> I
thought it my might be better to communicate my intentions to the
RDBMS with the trees themselves rather than turned them into a
query... but that is off-topic here, I guess :-) )