Update lexer.h to remove redundant code