登录
首页 » Compiler program » 编译原理课程实验,包括词法分析器和语法分析器

编译原理课程实验,包括词法分析器和语法分析器

于 2022-04-14 发布 文件大小:3.68 kB
0 124
下载积分: 2 下载次数: 1

代码说明:

编译原理课程实验,包括词法分析器和语法分析器-Compilation Principle experimental courses, including the lexical analyzer and parser

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

发表评论

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
  • 这个因为是我们老师让做的阶乘的代码,还算不错,希望给朋友门一点启发...
    这个因为是我们老师让做的阶乘的代码,还算不错,希望给朋友门一点启发
    2022-03-31 12:20:32下载
    积分:1
  • 这是关于小Python的实现
    this is about tiny python implementation
    2022-06-02 23:04:16下载
    积分:1
  • 一个词法分析程序,可以实现输入C源程序,输出二元式
    一个词法分析程序,可以实现输入C源程序,输出二元式-a lexical analysis procedures, can achieve the importation of C source files, binary output-
    2023-04-25 04:20:03下载
    积分:1
  • 用于进行递归下降分析法,编译原理,运行环境为Visual Stdio c++6.0...
    用于进行递归下降分析法,编译原理,运行环境为Visual Stdio c++6.0-Be used for recursive descent analysis, compiling principle, operating environment for Visual Stdio c++6.0
    2022-04-23 13:01:40下载
    积分:1
  • 下面子函数为定时器1、3 端口及其寄存器初始化说明ICP中断处理函数...
    下面子函数为定时器1、3 端口及其寄存器初始化说明ICP中断处理函数-Functions for below and register port timer initialization 1,3 Description ICP interrupt handling function
    2022-05-28 10:43:43下载
    积分:1
  • language A. A definition of the character set of data type definition
    附录A S语言说明 A.1 字符集的定义 3数据类型定义-language A. A definition of the character set of data type definition
    2022-07-15 06:41:38下载
    积分:1
  • 自己写的一个C子集的编译程序,包括源码和说明文件,以及文法的扩充BNF表达式...
    自己写的一个C子集的编译程序,包括源码和说明文件,以及文法的扩充BNF表达式-himself wrote a subset of the C compiler, including source code and documentation, and the expansion of BNF grammar expression
    2022-07-03 02:36:52下载
    积分:1
  • 简单的使用mfc开发的程序。
    简单的使用mfc开发的程序。- Simple use mfc develops procedure.
    2022-01-27 19:04:33下载
    积分:1
  • bochs完整的虚拟机,编译通过哦
    bochs完整的虚拟机,编译通过哦-bochs integrity hypothesized machine, the translation passes oh
    2022-08-22 22:31:07下载
    积分:1
  • 696516资源总数
  • 106668会员总数
  • 21今日下载