文件名称:CPP-source-word-scanner
介绍说明--下载内容均来自于网络,请自行研究使用
实验一:C++源代码单词扫描程序(词法分析)
功能:
(1)C++源代码扫描程序识别C++记号。
C++语言包含了几种类型的记号:标识符,关键字,数(包括整数、浮点数),字符串、注释、特殊符号(分界符)和运算符号等。
(2)打开一个C++源文件,打印出所有以上的记号。
(3)要求应用程序应为Windows界面。
(4)选作部分:为了提高C++源程序的可读性,C++程序在书写过程中加入了空行、空格、缩进、注释等。假设你想牺牲可读性,以节省磁盘空间,那么你可以存贮一个删除了所有不必要空格和注释的C++源程序的压缩文本。因此,程序中还应该有这样的压缩功能。
(5)选作部分:进一步思考或实现——如何进一步实现减小源文件大小的压缩功能。
(6)应该书写完善的软件文档。-Experiment one: C++ source code word scanner (lexical analysis) functions: (1) C++ source code scanner to identify C++ mark. C++ language contains several types of tokens: identifiers, keywords, number (including integer, float), string, notes, special characters (delimiters) and arithmetic symbols. (2) Open a C++ source file, print out all of the above marks. (3) requires that the application should be Windows interface. (4) selected as part: In order to improve the readability of source C++, C++ program writing process by adding a blank line, space, indentation, comments, and so on. Suppose you want to sacrifice readability, to save disk space, you can store a compressed text removed all unnecessary whitespace and comments C++ source code. Therefore, the program should also have such compression. (5) selected as part of: further thought or realize- how to achieve further reduce the size of the source file compression functions. (6) should write perfect software documentation.
功能:
(1)C++源代码扫描程序识别C++记号。
C++语言包含了几种类型的记号:标识符,关键字,数(包括整数、浮点数),字符串、注释、特殊符号(分界符)和运算符号等。
(2)打开一个C++源文件,打印出所有以上的记号。
(3)要求应用程序应为Windows界面。
(4)选作部分:为了提高C++源程序的可读性,C++程序在书写过程中加入了空行、空格、缩进、注释等。假设你想牺牲可读性,以节省磁盘空间,那么你可以存贮一个删除了所有不必要空格和注释的C++源程序的压缩文本。因此,程序中还应该有这样的压缩功能。
(5)选作部分:进一步思考或实现——如何进一步实现减小源文件大小的压缩功能。
(6)应该书写完善的软件文档。-Experiment one: C++ source code word scanner (lexical analysis) functions: (1) C++ source code scanner to identify C++ mark. C++ language contains several types of tokens: identifiers, keywords, number (including integer, float), string, notes, special characters (delimiters) and arithmetic symbols. (2) Open a C++ source file, print out all of the above marks. (3) requires that the application should be Windows interface. (4) selected as part: In order to improve the readability of source C++, C++ program writing process by adding a blank line, space, indentation, comments, and so on. Suppose you want to sacrifice readability, to save disk space, you can store a compressed text removed all unnecessary whitespace and comments C++ source code. Therefore, the program should also have such compression. (5) selected as part of: further thought or realize- how to achieve further reduce the size of the source file compression functions. (6) should write perfect software documentation.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
编译原理C++源代码单词扫描程序(java实现)\C++源代码单词扫描程序(java实现)\build\classes\实验_1\Analysis.class
.........................................\.................................\.....\.......\......\codeString.class
.........................................\.................................\.....\.......\......\floatNumber.class
.........................................\.................................\.....\.......\......\idWord.class
.........................................\.................................\.....\.......\......\intNumber.class
.........................................\.................................\.....\.......\......\keyWord.class
.........................................\.................................\.....\.......\......\Main.class
.........................................\.................................\.....\.......\......\MyFrame.class
.........................................\.................................\.....\.......\......\Tag.class
.........................................\.................................\.....\.......\......\Token.class
.........................................\.................................\build.xml
.........................................\.................................\dist\README.TXT
.........................................\.................................\....\___1.jar
.........................................\.................................\manifest.mf
.........................................\.................................\nbproject\build-impl.xml
.........................................\.................................\.........\genfiles.properties
.........................................\.................................\.........\private\private.properties
.........................................\.................................\.........\.......\private.xml
.........................................\.................................\.........\project.properties
.........................................\.................................\.........\project.xml
.........................................\.................................\src\实验_1\Analysis.java
.........................................\.................................\...\......\Main.java
.........................................\.................................\...\......\MyFrame.java
.........................................\.................................\...\......\Token.java
.........................................\tese.cpp
.........................................\C++源代码单词扫描程序(java实现)\build\classes\实验_1
.........................................\.................................\.....\classes
.........................................\.................................\nbproject\private
.........................................\.................................\src\实验_1
.........................................\.................................\build
.........................................\.................................\dist
.........................................\.................................\nbproject
.........................................\.................................\src
.........................................\.................................\test
.........................................\C++源代码单词扫描程序(java实现)
编译原理C++源代码单词扫描程序(java实现)