lua-users home
lua-l archive

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


On 12 November 2014 16:22, Gordon Madarm <gmadarm@gmail.com> wrote:
I've been using lua-gumbo to parse html, but now need to parse _javascript_ embedded in the HTML as well. Short of using regex's what can I use to parse a document containing several _javascript_ window.open() functions in lua to access the URI?

You could look into using CASTL to compile esprima to lua.
See https://github.com/PaulBernier/castl#id-prefer-a-version-of-castl-written-in-lua