Update lex.c

+treats broken numbers