Reimplement lexer in C#. Scan() finished.