(Experimental intent: To master the methods and techniques necessary to design a complete lexical analyzer for a simple programming language. Experiment request: 1) Design the word identification of a simple program language and its corresponding species code, design the state transition diagram of the words of the language and establish the important word list of the language; 2) Implement the identifier and the code in the language in the program. Definition of integer numbers; 3) Proficiency in scanning the text from an external file and reading in text symbols to combine words, and mastering the methods of accurately identifying and managing ASC control codes such as carriage return and line feed, and can copy the source program as it is List; 4) Create a binary file, during which the integer numbers are represented in binary mode; 5) Output a binary file on the CRT, four binary files per line, aligned up and down;
Scanner corrected.txt)