Base lexer