How about converting your input to all lowercase (or uppercase) before feeding it into the lexer?
Stephan