Create lexer.c

This file uses data structures and function defined under lexer.h to perform the actual lexical analysis.