Construction of the Lexical Analyzer by Direct Programming

YANG Chao, ZHENG Zhi-qun, HE Shu-qian, SHI Chun

Computer & Telecommunication ›› 2018, Vol. 1 ›› Issue (1-2) : 1-4.

Computer & Telecommunication ›› 2018, Vol. 1 ›› Issue (1-2) : 1-4.

Construction of the Lexical Analyzer by Direct Programming

  • YANG Chao, ZHENG Zhi-qun, HE Shu-qian, SHI Chun
Author information +
History +

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.

Key words

compiler principle / lexical analyzer / FA / state diagram / regular expression

Cite this article

Download Citations
YANG Chao, ZHENG Zhi-qun, HE Shu-qian, SHI Chun. Construction of the Lexical Analyzer by Direct Programming[J]. Computer & Telecommunication. 2018, 1(1-2): 1-4

Accesses

Citation

Detail

Sections
Recommended

/