Update scanner.c

edit readNumber function, add something in case CHAR_PERIOD ...