-
词法分析程序设计 1、给出各单词符号的类别编码。 2、词法分析程序应能发现输入串中的错误。 3、词法分析作为单独一遍编写,词法分析结果为二元式序列组成的...
词法分析程序设计 1、给出各单词符号的类别编码。 2、词法分析程序应能发现输入串中的错误。 3、词法分析作为单独一遍编写,词法分析结果为二元式序列组成的-Lexical analysis program design one, given the various types of code word symbols. 2, lexical analysis procedure should be able to detect errors in the input strings. 3, again as a separate lexical analysis prepared for morphological analysis of binary sequence composed of
- 2022-03-25 19:56:04下载
- 积分:1
-
一个面向对像语言的编译器,输出标准的汇编代码
一个面向对像语言的编译器,输出标准的汇编代码-as a right-oriented language compiler output code compilation of standards
- 2022-11-22 09:00:04下载
- 积分:1
-
brief introduction, the entire project is divided into five documents : Main.c
简单介绍一下,整个工程分为5个文件:Main.c ----- 程序的入口点,其实很简单,就是调用两个函数。Global.h ----- 定义了一些全局变量及宏Parse.h ----- 语法分析器的主要算法Prece.h ----- 定义和实现了一些关于优先级的操作Stack.h ----- 定义和实现了一个栈及其操作编译的时候只要用TC2.0或者WinTC打开Main.c文件进行编译就好了。如发现有Bug请在这里贴出来或者把修改后的代码跟帖在这里:)总之,这个工程仅仅是一个简单示例,告诉大家怎么样把课堂上学到的知识运用到实际编程当中去,工程中所用到的模块化思想,数据结构等知识都是大家学过的,大三了,希望大家在最后这段时间里把写程序的本领练就出来。:)-brief introduction, the entire project is divided into five documents : Main.c----- procedure entry point, it is actually very simple, it is called two functions. Global.h----- definition of global variables and Wang Parse.h----- parser the main algorithm Prece.h----- definition and realization of a number of priority the operation Stack.h----- the definition and implementation of a stack and operation of the compiler used whenever WITH TC 2.0 or WinTC open Main.c documents compiled enough. If found please Bug out here or affixed to amend the code of Columbia here :) Overall, the project is just a simple example, like to tell you how to put classroom knowledge
- 2022-09-22 15:55:02下载
- 积分:1
-
语法分析,编译原理,是Pascal子集C ..
编译原理中的语法分析,是对以PASCAL的一个子集编写的编译程序,功能还行,自己看着用吧-Compiler Construction Principles of grammar analysis, is to a subset of PASCAL compiler preparation procedures, functions also visit with your own watch
- 2023-02-15 04:00:04下载
- 积分: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
-
PL/0分析程序
PL/0分析程序-PL/0 analytical procedures
- 2023-06-09 03:10:03下载
- 积分:1
-
简单的词法分析,可以识别关键字错误,识别无效符号等等,通用!...
简单的词法分析,可以识别关键字错误,识别无效符号等等,通用!-Simple lexical analysis to identify the wrong keywords, identify invalid symbols and so on, General!
- 2022-03-03 08:16:24下载
- 积分:1
-
pascal编译器,可生成中间代码,简单实用
pascal编译器,可生成中间代码,简单实用-pascal compiler, can generate between code, simple and practical
- 2022-03-10 12:08:11下载
- 积分:1
-
词法分析器,是课设的题目。比较简单,下来就可以用了。
词法分析器,是课设的题目。比较简单,下来就可以用了。-Lexical analyzer is the subject of class-based. Relatively simple, it can be used.
- 2022-04-12 17:12:52下载
- 积分:1
-
c51的模数转换
c51的模数转换-C51 of the analog-digital conversion
- 2022-06-18 15:48:45下载
- 积分:1