Lexical Analyzer implementation for Stanford Compilers CS1 Course