文件名称:CPP-source-word-scanner

  • 所属分类:
  • 编译器/词法分析
  • 资源属性:
  • [C/C++] [源码]
  • 上传时间:
  • 2013-12-05
  • 文件大小:
  • 45kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • 邵*
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

实验一: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.
(系统自动生成,下载前可以参看下载内容)

下载文件列表





编译原理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实现)

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org