own implementation of a test lexer for practice.