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.