Implemented a lexer / lexical analysis.