Port of token.js to Clojure. Simple regular expression-based lexer.