extendable lexer written JavaScript.