-
使用C/C++语言作为实现语言,实现一个简单PL/0语言的编译器。手工编码实现编译器的组成部分。语法分析程序采用递归下降分析法。...
使用C/C++语言作为实现语言,实现一个简单PL/0语言的编译器。手工编码实现编译器的组成部分。语法分析程序采用递归下降分析法。-The use of C/C++ language as the implementation language, to achieve a simple PL/0 language compiler. Hand-coding part of the compiler. Parser uses recursive descent analysis.
- 2023-05-12 05:10:02下载
- 积分:1
-
逆波兰试的翻译程序, 是我的程序作业
逆波兰试的翻译程序, 是我的程序作业 - Goes against the Poland trial interpretive program, is my
procedure work
- 2022-08-04 00:13:42下载
- 积分:1
-
编译原理词法分析的电子文档
编译原理词法分析的电子文档-compiler theory lexical analysis of electronic documents
- 2022-02-12 00:14:18下载
- 积分:1
-
为一个很好地语法解析内核程序
为一个很好地语法解析内核程序- For a well grammar analysis essence procedure
- 2022-02-03 18:38:06下载
- 积分:1
-
C_minus BNF language syntax definition of procedures from the list of statement...
C_minus语言的BNF语法定义 程序由声明的列表(或序列)组成,声明可以是函数或变量声明,顺序是任意的。至少必须有一个声明。接下来是语义限制(这些在C中不会出现)。所有的变量和函数在使用前必须声明(这避免了向后backpatching引用)。程序中最后的声明必须是一个函数声明,名字为main。注意,C-缺乏原型,因此声明和定义之间没有区别(像C一样)。-C_minus BNF language syntax definition of procedures from the list of statement (or sequence), with a statement can be variable or function statement, the order is arbitrary. There must be at least one statement. Next is the semantic constraints (these will not arise C). All the variables and functions to be used in the statement (which avoids the use Backpatching backwards). Procedures must be the last statement is a function declaration, the name of the main. Attention C- lack of a prototype, and the definition of a statement is no difference between (the same as C).
- 2022-03-04 15:33:26下载
- 积分:1
-
CMINUS写在C语言的语法分析器,用递归下降法
C语言编写的cminus语言语法分析器,采用递归下降方法-Cminus written in C language parser, using recursive descent method
- 2023-05-13 01:25:03下载
- 积分:1
-
词法分析器生成工具,Turbo C编译器生成的V2.0
词法分析器生成工具,用Turbo C v2.0编译生成的-lexical analyzer generation tool, Turbo C compiler generated v2.0
- 2023-03-20 16:25:04下载
- 积分:1
-
Studies the translation principle sixth chapter
学习编译原理 第六章- Studies the translation principle sixth chapter
- 2022-10-21 21:30:02下载
- 积分: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
-
Standar Snake Using Pascal
Standar Snake Using Pascal
- 2022-04-23 09:14:45下载
- 积分:1