This time through the design of a specific lexical analysis program, in the case of self-hands experience, a more thorough understanding of the process of lexical analysis, deepen the understanding of the principle of CI analysis. In the process of scanning the programming language source program, it is decomposed into lexical analysis methods of all kinds of words. Compiling a read word process, from the input of the source program, the identification of the individual meaning of the word, that is, the basic reserved words, identifiers, constants, operators, separators five categories. and sequentially output the internal code of each word and the value of the word symbol itself.
By compiling the principle of this program experiment, as well as the algorithm. For the future from the model to the program code conversion ability, there is a lot of exercise. I will be more attentive to the study of computer knowledge, the actual problems encountered in the reality, to the procedural aspects of change, so that the flexibility to use the knowledge learned.
Lexical Analysis Summary