Description: Compliance with the statement while the grammar, or to the beginning of grammar symbols can not be derived from the statement. (2) The program should include the lexical analyzer, the statement can be carried out input lexical analysis, and then output the results. Lexical analyzer should be able to identify the keywords, identifiers, constants, operators and so on. (3) parser of the program can analyze the syntax of input to determine whether the input statement to meet the loop while the grammar. Priorities through a simple statement of the method of analysis to see whether it can reduce to the beginning of grammar symbols. (4) the program analyzer is the semantic analysis of the results of the output requirements of the output is three-address form.
File list (Check if you may need any files):
0120410680314-胡祥潇
....................\formula.h
....................\input.txt
....................\lexcal.h
....................\syntax.h
....................\while.cpp
....................\wordoutput.txt
....................\文档
....................\....\WHILE循环语句的翻译程序设计.doc
....................\....\测试文法及优先级.doc
....................\....\简单优先关系矩阵.doc