scanning lexical analysis implementation 9217553