Abstract:The construction of the lexical analyzer by direct programming is analyzed and studied in this paper. The lexical analyzer is described by the regular expression, the state diagram and FA. Then an example is used to analyze and explain the structural process of the lexical analyzer. By further analyzing the performance of the lexical analyzer, we find that the lexical analyzer constructed by direct programming is faster than other types of lexical analyzer.
杨超, 郑志群, 何书前, 石春. 构造直接编程的词法分析器[J]. 电脑与电信, .
YANG Chao, ZHENG Zhi-qun, HE Shu-qian, SHI Chun. Construction of the Lexical Analyzer by Direct Programming. Computer & Telecommunication, 2018, 1(1-2): 1-4.