所属分类:
编译器/解释器
开发工具:C/C++
文件大小:99KB
下载次数:219
上传日期:2005-09-02 12:02:08
说明: 词法分析中2.实验内容
SAMPLE语言语法分析部分的实现。
输入:词法分析后得到的token.txt文件.
输出:程序中的语法错误的所在的行和列,出错原因.
功能:读入词法分析后得到的TOKEN串,识别不同的语法范畴,并识别其中的 语法错误,同时显示错误所在行,列和错误的原因.
(2. SAMPLE experiment as part of language syntax analysis of the achievement. Input : lexical analysis after the token.txt document. Output : the procedures of grammatical mistakes and the line out, the wrong reasons. Features : Reading into the lexical analysis of the TOKEN Series, identify different syntax areas, and to identify the grammatical mistakes, also shows that the errors OK , and listed the wrong reason.)