Lexer implementation.
Added test page.