Stubbed a generic lexer imterface and optimized.