Java Implementation of a lexical analyzer for CS 311 - Automata and Translation Class