期刊文献+

一种改进的词法分析程序及其类C语言实现

Improved Lexical Analysis and Its Implementation in C-like Language
下载PDF
导出
摘要 本文提出一种改进的词法分析程序设计思想,并进行了实现。首先定义四类字符集,构造状态转换矩阵。然后通过对给定文法的分析,化简变换状态转换矩阵使之成为程序可直接使用的二维数组Status。最后利用二维数组Status给出了核心函数get Word()的类C描述。 In this paper,the design thought of an improved lexical analysis is proposed and realized.First of all,the definition of four types of character sets and construction of a state transition matrix are achieved.Secondly,through analysis of a given grammar,the state transition matrix can be transformed into a two-dimensional array in which the lexical analysis can directly use.Finally,the description of core function getWord(),which takes advantage of the matrix above,is given in C-like language.
作者 杨超 王一宾
出处 《安庆师范学院学报(自然科学版)》 2009年第4期36-38,42,共4页 Journal of Anqing Teachers College(Natural Science Edition)
关键词 词法分析 字符集 状态转换矩阵 lexical analysis character set state transition matrix
  • 相关文献

参考文献2

二级参考文献4

  • 1(美)Halvorson M.Visual Basic 6[M].北京:机械工业出版社,1999..
  • 2何炎祥(译),原理,2000年
  • 3Halvorson M,Visual Basic6,1999年
  • 4陈火旺,程序设计语言编译原理,1980年

共引文献11

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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