Initial lexer implementation.