Created lexer

A lexer is used to analyze the code to check for lexical errors