modified lexer to work with Alex 3 (and hopefully Alex 2 as well)