From: spooq Date: 2007-01-02T21:03:01+09:00 Subject: Re: how to lex javascript for an assert_js system? On 12/30/06, Phlip wrote: > Now the questions. Is there some... > > ...way to severely beautify that implementation? > ...lexing library I could _easily_ throw in? > ...robust JS Lexer library already out there? > ...assert_js already out there? Parsing with regexps makes baby Jesus cry. Javascript itself can be quite flexible, so it may be possible to do enough with a standard interpreter's run-time. Alternatively, have a look at the Mozilla projects repository for a real interpreter you could hack on.