Rewrote lexer symbol recognition completely.