文件名称:main
介绍说明--下载内容均来自于网络,请自行研究使用
编制一个能够分析整数、标识符、分隔符、主要运算符和主要关键字的词法分析程序。
具体要求:设计一个词法分析程序,每调用一次就从源程序文件中顺序识别出一个单词符号,并返回该单词符号的二元式信息(各个单词的内部编码及单词符号自身值)。遇到错误时能返回错误信息,并跳过错误部分继续分析。 -Analysis of the preparation of an integer identifier, a separator, the main operator and the main keyword lexical analysis procedures. Specific requirements: the design of a lexical analysis program, each call to a document from the source sequence of symbols to identify a word, and words return to the type of binary information symbols (all the internal code word and the word itself symbolic value). Encountered an error when the error message to return and continue to skip the error part of analysis.
具体要求:设计一个词法分析程序,每调用一次就从源程序文件中顺序识别出一个单词符号,并返回该单词符号的二元式信息(各个单词的内部编码及单词符号自身值)。遇到错误时能返回错误信息,并跳过错误部分继续分析。 -Analysis of the preparation of an integer identifier, a separator, the main operator and the main keyword lexical analysis procedures. Specific requirements: the design of a lexical analysis program, each call to a document from the source sequence of symbols to identify a word, and words return to the type of binary information symbols (all the internal code word and the word itself symbolic value). Encountered an error when the error message to return and continue to skip the error part of analysis.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
main.cpp