Basic implementation of operator lexer.