登录
首页 » Compiler program » 一个用C语言写的词法分析程序,输入所给文法的源程序字符串,输出二元组构成的序列。附有实验报告...

一个用C语言写的词法分析程序,输入所给文法的源程序字符串,输出二元组构成的序列。附有实验报告...

于 2022-07-07 发布 文件大小:30.14 kB
0 147
下载积分: 2 下载次数: 1

代码说明:

一个用C语言写的词法分析程序,输入所给文法的源程序字符串,输出二元组构成的序列。附有实验报告-Using C language to write a lexical analysis program, enter the source string to the grammar, the output sequence of binary units. With the experimental report

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

发表评论

0 个回复

  • 编译原理LR(0)文法分析器 录入合法的LR(0)文法,将输出LR(0)分析表,并可以对输入的句子进行语法分析输出相应语法树。 程序中部分算法还很不简洁,有待改...
    编译原理LR(0)文法分析器 录入合法的LR(0)文法,将输出LR(0)分析表,并可以对输入的句子进行语法分析输出相应语法树。 程序中部分算法还很不简洁,有待改进,欢迎朋友与我多多交流。- Translation principle LR (0) grammar analyzer input legitimate LR (0) the grammar, will output LR (0) the analytical table, and will be allowed to carry on the grammar analysis output corresponding grammar tree to the input sentence. In the procedure the partial algorithms very are not succinct, await improvements, welcome the friend and my many exchanges.
    2022-05-17 18:31:19下载
    积分:1
  • very detailed grammar compiler ll1 Demonstration Program, the study compiled Acu...
    很详细的ll1文法编译演示程序,学习编译的极品!-very detailed grammar compiler ll1 Demonstration Program, the study compiled Acura!
    2022-01-21 20:39:18下载
    积分:1
  • This is a vc environment compiler running under the principle source of lexical...
    这是一个vc++环境下运行的编译原理的词法分析源程序,可以在vc++环境下直接运行,其中有运行的截图,学校要求做实验报告,给和我一样要交报告的人。-This is a vc environment compiler running under the principle source of lexical analysis, the vc direct operating environment, which is running the screenshots, the school asked to do experiments, and I like to have to pay the people.
    2022-08-07 10:01:47下载
    积分:1
  • 一个小程序,用c++语言实现简单的一遍编译器,完成中缀表达式与后缀表达式之间的转换。...
    一个小程序,用c++语言实现简单的一遍编译器,完成中缀表达式与后缀表达式之间的转换。-a small program, c simple language what the compiler, completed sergeant with the suffix expression between the expression change.
    2022-04-19 18:21:52下载
    积分:1
  • 用MFC编了一个迷你的Pascal编译器,交互式用户界面
    用mfc编的一个mini pascal compiler,有交互界面,方便用户操作,对于学编译原理以及正在研究mfc的同学来说,是相当不错的参考源码。-mfc series with a mini pascal compiler, interactive interface user-friendly operation, the compiler theory and science is studying mfc students, it is a fairly good reference source.
    2023-08-14 05:10:03下载
    积分:1
  • 一个简单的词法分析器,1代表字符,2代表关键字(命令字),4带表算符界符, 注:要把wangs.txt这个文件放在桌面上,然后在这个TXT里写上你要识别的语句。...
    一个简单的词法分析器,1代表字符,2代表关键字(命令字),4带表算符界符, 注:要把wangs.txt这个文件放在桌面上,然后在这个TXT里写上你要识别的语句。然后保存后关毕,在运行WANG词法分析.EXE进行词法分析。 完成识别后,会在相应的词面前出现以上代号。暂不能对数字进行识别。因为在某种请况下数字也可表是为字符……稍有困难,但完成老师的针对程序段:area=b+c*d。那简直是小菜一碟。-a simple lexical analyzer, a representative character, the two representatives keyword (command word), with four tables operator sector website Note : The wangs.txt the document on the desktop, then the TXT Lane write you to identify words. Then preserved customs Albert, running WANG lexical analysis. EXE for lexical analysis. After completing the identification, in the appropriate words appear in front of the above code. Provisional figures for the right not to identify. Because of the status of requests under certain figures might be for the characters ... the slightest difficulty, but the completion of procedural teachers : area = b, c* d. It is simply to touch.
    2022-07-26 00:51:29下载
    积分:1
  • 编译器
    compiler
    2022-01-25 18:35:14下载
    积分:1
  • 为了实现编译器的实用,可自由编写源代码…
    为了实现的编译程序实用,源程序可采用自由书写格式,即一行内可以书写多个语句,一个语句也可以占领多行书写;标识符的前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
  • AtScript 1.1 一个很好用的脚本引擎,可以很方便的在你的软件中实现脚本功能,支持用户扩展对象...
    AtScript 1.1 一个很好用的脚本引擎,可以很方便的在你的软件中实现脚本功能,支持用户扩展对象-AtScript 1.1 script with a good engine, can be very convenient in your software realize the script function, support the expansion of the target users
    2023-07-26 15:05:03下载
    积分:1
  • A LL(1) parser, built by MS VC 6.0, an assignment of my Complier Principles co...
    LL(1)的语法分析器,VC6.0编译器通过,输入输出的文件名详见代码,输出文件中的分析过程和编译原理课本要求类似,根据不同的句子可能需要重新调整对齐格式-A LL(1) parser, built by MS VC 6.0, an assignment of my Complier Principles course
    2022-08-16 06:42:11下载
    积分:1
  • 696518资源总数
  • 106222会员总数
  • 14今日下载