文件名称:Compiler
介绍说明--下载内容均来自于网络,请自行研究使用
(1) 将此番分析程序设计成独立一遍扫描源程序的结构。词法分析的输出结果采用如下的二元组表示:
(单词种别,单词自身的值)
对表识符,采用下列的二元组表示:
(表识符,指向标识符表项的指针)
单词种别建议采用一个关键字一个整数值、一个算符一个整数值等形式,每个整数值是不重复的,设计中应考虑好编码的方案(要跟语法分析连贯)。
(2) 测试用例:
应该建立至少两个测试用例:一个词法上正确的PL/0源程序和词法上部正确的源程序。
-(1) This analysis program will be designed as an independent source to scan the structure again. Lexical Analysis of the output of the dual use of the following group, said: (the word of other species, the value of their own words) on the table knowledge Fu, using the following binary group, said: (Table numeracy Fu, point identifier table entry pointer) word other species suggested an integer value of a keyword, an operator the form of an integer value, each integer value is not repeated, the design should be considered a good encoding program (with grammar analysis of coherence). (2) test case: It should be the establishment of at least two test cases: a lexical correct PL/0 source and the upper part of the correct morphology of the source.
(单词种别,单词自身的值)
对表识符,采用下列的二元组表示:
(表识符,指向标识符表项的指针)
单词种别建议采用一个关键字一个整数值、一个算符一个整数值等形式,每个整数值是不重复的,设计中应考虑好编码的方案(要跟语法分析连贯)。
(2) 测试用例:
应该建立至少两个测试用例:一个词法上正确的PL/0源程序和词法上部正确的源程序。
-(1) This analysis program will be designed as an independent source to scan the structure again. Lexical Analysis of the output of the dual use of the following group, said: (the word of other species, the value of their own words) on the table knowledge Fu, using the following binary group, said: (Table numeracy Fu, point identifier table entry pointer) word other species suggested an integer value of a keyword, an operator the form of an integer value, each integer value is not repeated, the design should be considered a good encoding program (with grammar analysis of coherence). (2) test case: It should be the establishment of at least two test cases: a lexical correct PL/0 source and the upper part of the correct morphology of the source.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Compiler.cpp