lua-users home
lua-l archive

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


On 27.11.2013 10:04, Geoff Leyland wrote:
On 27/11/2013, at 8:54 pm, steve donovan <steve.j.donovan@gmail.com> wrote:
If it's too big, then a stream-based LuaExpat way would be the
(standard) way to go.

I was just going to fiddle with Roberto’s parser to make it a bit more streamy, but I’ve just read there’s an alternative format for OSM data anyway.


Another option, if you are in good mood to make a favor to the community :-), is to make an attempt to summarize the previous LPeg streaming processing attempts (because that way, not just XML, but all other potentially big sources already having LPeg grammars, will become processable).

Since you are on LuaJIT, you might test with the FFI port:

https://github.com/sacek/LPegLJ

Kind Regards,
Alek