文件名称:java-scanner
介绍说明--下载内容均来自于网络,请自行研究使用
用C语言(或 C++ )作为宿主语言完成:
Java语言词法分析器的设计和实现
其中具体要求:
1. 使用DFA实现词法分析器的设计;
2. 实现对Java源程序中注释的过滤;
3. 利用两对半缓冲区从文件中逐一读取单词;
4. 词法分析结果属性字流存放在独立文件(文件名:scanner_output)中;
5. 统计源程序每行单词的个数和整个源文件单词个数;
6. 具有报告词法错误和出错位置(源程序行号和该行字符)的功能;
-Using C language (or C++) as the completion of the host language: Java language lexical analyzer in which the design and implementation of specific requirements: 1. The use of DFA to achieve the design of lexical analyzer 2. The realization of the Java source code of the filter in the Notes 3. the use of two pairs of semi-buffer read from the document the words one by one 4. lexical analysis of flow properties of the word stored in a separate document (file name: scanner_output) in 5. statistical source of the number of words per line and the source document word number 6. with the report of lexical errors and error location (source code line number and the character) of the function
Java语言词法分析器的设计和实现
其中具体要求:
1. 使用DFA实现词法分析器的设计;
2. 实现对Java源程序中注释的过滤;
3. 利用两对半缓冲区从文件中逐一读取单词;
4. 词法分析结果属性字流存放在独立文件(文件名:scanner_output)中;
5. 统计源程序每行单词的个数和整个源文件单词个数;
6. 具有报告词法错误和出错位置(源程序行号和该行字符)的功能;
-Using C language (or C++) as the completion of the host language: Java language lexical analyzer in which the design and implementation of specific requirements: 1. The use of DFA to achieve the design of lexical analyzer 2. The realization of the Java source code of the filter in the Notes 3. the use of two pairs of semi-buffer read from the document the words one by one 4. lexical analysis of flow properties of the word stored in a separate document (file name: scanner_output) in 5. statistical source of the number of words per line and the source document word number 6. with the report of lexical errors and error location (source code line number and the character) of the function
(系统自动生成,下载前可以参看下载内容)
下载文件列表
java词法分析器(C语言)
.......................\JavaScanner.cpp
.......................\JavaScanner.h
.......................\JavaScanner.cpp
.......................\JavaScanner.h