登录
首页 » Compiler program » 词法分析器 可以识别c++的源码,自动生成词法分析表, 在分析结束后会指出源代码中可能的错误 待分析的源代码要以 *源代码.txt的格式保存...

词法分析器 可以识别c++的源码,自动生成词法分析表, 在分析结束后会指出源代码中可能的错误 待分析的源代码要以 *源代码.txt的格式保存...

于 2022-01-28 发布 文件大小:8.06 kB
0 108
下载积分: 2 下载次数: 1

代码说明:

词法分析器 可以识别c++的源码,自动生成词法分析表, 在分析结束后会指出源代码中可能的错误 待分析的源代码要以 *源代码.txt的格式保存-Lexical analyzer can identify c++ The source, automatically generate lexical analysis table, after the end of the analysis will be pointed out that the source code may be an error to be analyzed the source code to source code*. Txt format save

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 为了实现编译器的实用,可自由编写源代码…
    为了实现的编译程序实用,源程序可采用自由书写格式,即一行内可以书写多个语句,一个语句也可以占领多行书写;标识符的前20个字符有效;整数用2个字节表示;长整数用4个字节表示。这样词法分析程序的主要工作为: (1)从源程序文件中读入字符。 (2)统计行数和列数用于错误单词的定位。 (3)删除空格类字符,包括回车、制表符空格。 (4)按拼写单词,并用(种别,单词)二元式表示。 (5)根据需要是否填写标识符表供以后各阶段使用。 这里采用的编译程序的实现方法是一遍扫描,即从左到右只扫描一次源程序,也就是词法分析作为语法分析的一个子程序。故在编写词法分析程序时,用重复调用词法分析子程序取一单词的方法得到整个源程序的二元式流。 -in order to achieve the compiler practical, available free to write source code format, that his writing can be more than words, a statement can occupy multiple lines written; identifier of 20 characters effective; Integer with two byte; long integer with four byte. This lexical analysis for major work : (1) from source document read into the characters. (2) Statistics and a few mistakes out a few words for positioning. (3) delete the blank type characters, including the carriage return, tab spaces. (4) the spelling words and use (other species, words) dual ceremony. (5) whether the need for completing the table identifier subsequent stages. Here the compilers of th
    2022-01-23 11:14:40下载
    积分:1
  • this document is prepared by the VC on the principle of genetic algorithms compi...
    此文件是用VC编写的关于编译原理遗传算法用于tsp问题的研究-this document is prepared by the VC on the principle of genetic algorithms compiled for the study tsp
    2022-02-04 15:34:03下载
    积分:1
  • 一个计算器程序,利用了编译原理的知识,可以用来作为一个例子,学习编译原理...
    一个计算器程序,利用了编译原理的知识,可以用来作为一个例子,学习编译原理-a calculator procedure, and use of compiler theory of knowledge, could be used as an example to study compiler theory
    2022-08-26 13:29:23下载
    积分:1
  • 一简单小型类pascal语言编译器的词法分析程序,附详细的实验报告...
    一简单小型类pascal语言编译器的词法分析程序,附详细的实验报告-a small category pascal simple language compiler of lexical analysis procedures, with details of the experimental report
    2023-04-27 14:10:02下载
    积分:1
  • 这是一个简单的C编译器的词法分析和语法分析。
    这是一个简单的C编译器的词法分析和语法分析。-This is a simple C-compiler of lexical analysis and parsing.
    2022-07-04 10:50:39下载
    积分:1
  • 2022-06-03 09:40:35下载
    积分:1
  • 编译原理大作业
    编译原理大作业---tiger编译器 包括semant,translate,mipsframe,regalloc等所有phase 懂的人自会知道-Compilation Principle big operation--- tiger compiler including semant, translate, mipsframe, regalloc all those who understand phase will know
    2022-03-04 15:18:43下载
    积分:1
  • 语法分析器 java版 编译课程综合训练
    语法分析器 java版 编译课程综合训练-Java version of the compiler parser comprehensive training courses
    2023-07-25 23:50:04下载
    积分:1
  • 目标代码生成(C++)源代码+详细的课程设计报告 源程序的中间代码变换成依赖于具体机器的等价的目标代码...
    目标代码生成(C++)源代码+详细的课程设计报告 源程序的中间代码变换成依赖于具体机器的等价的目标代码-Target code generation (C++) Source code a detailed report of the curriculum design of the intermediate source code converted into machine dependent on the specific object code equivalent
    2022-01-25 23:37:57下载
    积分:1
  • c下的词法分析器代码,很实用的
    c下的词法分析器代码,很实用的-c morphology analyzer code, is very practical
    2023-04-06 00:00:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载