Added a verbose put message in utils for verbose versus nonverbose output. Added a to string method for tokens. Added a check in the lexer for the end of file with errors and warnings. Moved the main lexing part to another function to correctly stop on the end of file without adding more ifs. Put in a place that if there are no errors lexing it will continue to parse. Of course it will still parse because I didn't remove your code from the html file yet but I will get to that when I work on parse. Moved the variable stringInformation to prevent null searches. Added places for verbose output. Added a return for the end of file. Moved the check if it is null token because I was dumb and put it inside the if statement. So, now errors will be properly caught and handled