Lexer for Udacity CS262