期刊文献+

词法分析器生成器的设计与实现

Lexical Analysis Generator Design and Realization
下载PDF
导出
摘要 当构造词法分析器时,根据单词的正规式定义首先构造与正规式等价的NFA,之后用子集法将NFA转换成DFA,并用此DFA进行词法分析。对词法分析器生成器的设计算法进行了研究,即构造等价于给定正规式非确定有限自动机,并用一种高级语言(C语言)在计算机上实现。 To construct Lexieal analysis, the NFA (Nondeterministie Finite Automata) equivalent to the regular expression should be constructed firstly according to the regular expression definition of words. Then the DFA( deterministic finite - state automata) used to do the Lexical analysis was acquired with subset method. The algorithm for designing the Lexical analysis generator was introduced, i. e. constructing the NFA equivalent to a given regular expression, furthermore, this algorithm was realized by computer programming of an advanced language( C language).
作者 李垒 陈平
出处 《荆门职业技术学院学报》 2008年第9期41-46,共6页 Journal of Jingmen Technical College
关键词 正规式 NFA(非确定有限自动机) DFA(确定有限自动机) 转换 regular expression NFA ( nondeterministic finite - state automata) DFA ( deterministic finite - state automata) transition
  • 相关文献

参考文献8

  • 1Wilhelm R, Maurer D. Compiler design [ M ]. Addison - Wesley, 1986.
  • 2檀凤琴.构造正则表达式的简化 DFA 算法[J].北京航空航天大学学报,1998,24(4):495-498. 被引量:3
  • 3Steven S Muchnick. Advanced compiler design and implementation [ M ]. Morgan Kaufmann Publishers, 1999.
  • 4Aho,A. V. J. E. HOPCROFT and J. D. ULLMAN. The Design and Analysis of Computer Algorithms [ J ]. Addixon - Wesley, Reading, Mass,2000.
  • 5李建中,译.编译原理[M].北京:机械工业出版社,2004.
  • 6陈火旺,钱家骅,孙永强.程序设计设计编译原理[M].3版.安徽:国防工业出版社,2000.
  • 7严蔚敏 吴伟民.数据结构[M].北京:清华大学出版社,1997..
  • 8Alfred V. Aho, Ravi Sethi and Jeffrey D. Ullman Compilers : Principles, Techniques, and Tools [ M ]. Pearson Education, 2nd edition, 1986.

二级参考文献1

  • 1孙怀民,离散数学,1990年

共引文献273

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部