Garbage attempt at rewriting the lexer.