Create scanner.c

Token scanner provided by instructor