资 源 简 介
1、本程序的作用是进行TEST语言的词法分析。 2、可双击运行后输入文件名,或是在命令提示符下输入test 文件名……,支持多个文件同时进行词法分析。 3、本程序是在VC6.0环境下测试通过,用的是C++语法。当然也有C的语法。 4、本程序留下了很多的接口以待以后的语法分析和语义分析实验时进行扩展。比如已将词法分析结果记入到了一个顺序存储的数据结构中,以待后用。 5、程序扫描处理一部分是经孙悦红老师的示范程序修改而成,(增加了一些功能)其他部分为了适应自己的接口,都是由本人编写。-one, the process is the role of TEST language lexical analysis. 2, double-click operation input file name, or under the command prompt test input file name ... supports multiple documents simultaneously lexical analysis. 3, the procedure was VC6.0 testing environment, using the C syntax. Of course, there are C syntax. 4, the process left a lot of interface to question the future of grammar analysis and semantic analysis experiments expansion. For example, lexical analysis has been credited to a sequence of data storage structures to be used later. 5, the scanning process is handled by the part of teachers Coaldale red model procedures and revisions, (an increase of some function) in order to adapt to other parts of the interface are all prepared b