-
1、构造该算符优先文法的优先关系矩阵或优先函数;
2、输入串应是词法分析的输出二元式序列,即某算术表达式“实验项目一”的输出结果。输出为输入串是否为该文法定
1、构造该算符优先文法的优先关系矩阵或优先函数;
2、输入串应是词法分析的输出二元式序列,即某算术表达式“实验项目一”的输出结果。输出为输入串是否为该文法定义的算术表达式的判断结果。
3、算符优先分析过程应能发现输入串出错。
-1, construction of the operator the priority of the priority relation matrix grammar or priority function 2, input strings should be the output of lexical analysis of binary sequence, that is, the arithmetic expression of a
- 2023-06-11 00:45:03下载
- 积分:1
-
一个面向对像语言的编译器,输出标准的汇编代码
一个面向对像语言的编译器,输出标准的汇编代码-as a right-oriented language compiler output code compilation of standards
- 2022-11-22 09:00:04下载
- 积分:1
-
中山大学编译原理课程的一个实验,根据OPP(算符优先)做的一个表达式计算器。
内有实验的设计文档。
实验要求支持sin,cos,max,min,powe...
中山大学编译原理课程的一个实验,根据OPP(算符优先)做的一个表达式计算器。
内有实验的设计文档。
实验要求支持sin,cos,max,min,power,mod,boolean,?:,等运算。
这个代码可以为学习编译原理的同学参考。-Principles of Sun Yat-sen University to compile an experimental course, according to OPP (operator priority) to do an expression calculator. There are experimental design documents. Experimental requirements to support the sin, cos, max, min, power, mod, boolean,?:, Such as computing. This code can be compiled for study and reference principles classmates.
- 2023-02-13 08:30:04下载
- 积分:1
-
一个词法分析实验的源代码
一个词法分析实验的源代码- A lexical analysis experiment source code
- 2022-03-21 17:06:27下载
- 积分:1
-
(1) 给定一段符合Pascal子集语法的语言,能成功转换成C语言;
(2) 一个简单的说明文档;
(3) 2007.7.14之前上传到ftp:// C...
(1) 给定一段符合Pascal子集语法的语言,能成功转换成C语言;
(2) 一个简单的说明文档;
(3) 2007.7.14之前上传到ftp:// C07:C07@10.11.3.71/upload,用学号建立自己的目录;
(4) (可额外加分5分)若有出错处理功能,请在说明文档中写明可以处理哪几项错误。
注意事项:
(1) 两人一组
(2) 可以使用词法、语法自动生成工具,windows下有Flex,Bison,Linux下有Lex,Yacc,Java的有Jlex,JavaCC,ANTLR等
(3) 不用考虑Pascal和C的关键词不同问题,即Pascal子集语言中假设不出现int,for等作为变量标志符
(4) read()和write()可用由scanf(),printf()等组成的语句转换。
(5) 如果有疑问可以发信给我 xpqiu@fudan.edu.cn.
- 2022-03-23 02:20:36下载
- 积分:1
-
jsp technology, a management system management system
jsp技术,一个管理系统-jsp technology, a management system management system
- 2022-06-21 08:42:16下载
- 积分:1
-
用java实现的简单编译器,希望对大家有用
用java实现的简单编译器,希望对大家有用-Achieved with a simple java compiler, and hope for all of us
- 2023-08-25 22:25:03下载
- 积分:1
-
可插入OLE对象的编辑器
可插入OLE对象的编辑器- May insert the OLE object editor
- 2022-07-01 01:20:16下载
- 积分:1
-
A VisualC++ Realize the C
一个VisualC++实现的C-语言的编译器-A VisualC++ Realize the C-language compiler
- 2022-07-02 02:14:29下载
- 积分:1
-
学习简单的Yacc说明的原理,掌握Yacc源文件的写法以及语法分析器生成工具BISON的使用方法和Yacc源文件的运行方法和基本步骤。...
学习简单的Yacc说明的原理,掌握Yacc源文件的写法以及语法分析器生成工具BISON的使用方法和Yacc源文件的运行方法和基本步骤。
-Yacc study shows a simple principle, Yacc master source file written syntax analyzer and generate UML tools and the use of the source language Yacc pieces of the operation and basic steps.
- 2022-12-19 01:20:04下载
- 积分:1