文件名称:Java-Scanner
- 所属分类:
- 其他小程序
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2014-06-09
- 文件大小:
- 3kb
- 下载次数:
- 2次
- 提 供 者:
- wench******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
Java语言词法分析器的设计和实现
其中具体要求:
使用DFA实现词法分析器的设计;
实现对Java源程序中注释的过滤;
利用两对半缓冲区从文件中逐一读取单词;
词法分析结果属性字流存放在独立文件(文件名:scanner_output)中;
统计源程序每行单词的个数和整个源文件单词个数;
具有报告词法错误和出错位置(源程序行号和该行字符)的功能;-Java language lexical analyzer design and implementation of which specific requirements: Use DFA lexical analyzer designed to achieve realization of Java source code annotations filter use two pairs of semi-buffer read the words from the file one by one lexical analysis of property word stream is stored in a separate file (file name: scanner_output) in number of words per line source statistics and the number of words in the entire source file has reported lexical error and error location (source code line number and the line of characters) function
其中具体要求:
使用DFA实现词法分析器的设计;
实现对Java源程序中注释的过滤;
利用两对半缓冲区从文件中逐一读取单词;
词法分析结果属性字流存放在独立文件(文件名:scanner_output)中;
统计源程序每行单词的个数和整个源文件单词个数;
具有报告词法错误和出错位置(源程序行号和该行字符)的功能;-Java language lexical analyzer design and implementation of which specific requirements: Use DFA lexical analyzer designed to achieve realization of Java source code annotations filter use two pairs of semi-buffer read the words from the file one by one lexical analysis of property word stream is stored in a separate file (file name: scanner_output) in number of words per line source statistics and the number of words in the entire source file has reported lexical error and error location (source code line number and the line of characters) function
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Java-Scanner.cpp