-
(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
-
V的编码器编码。
encode.v The encoder
syndrome.v Syndrome generator in decoder
berlekamp.v Berlekamp algorithm in decoder
chien-search.v Chien search and Forney algorithm in decoder
decode.v The top module of the decoder
inverse.v Computes multiplication inverse of an Galois field element
test-bench.v The test fixture, and some brief notes on using the modules.
data-rom.v A simple data source for testing
run For those intelligence-challenged who can t run verilog
LGPL The license
-encode.v syndrome.v Syndrome generator in decoder al berlekamp.v Berlekamp gorithm in decoder chien- search.v Chien searc h and Forney in decoder algorithm decode.v The t op module of the decoder inverse.v Computes intercommunication tiplication inverse of an element over Galois field test-bench.v The test fixture. and some brief notes on using the modules. data- rom.v A simple data source for testing run For th PNA intelligence-challenged who can not run veri The log LGPL license
- 2022-02-03 11:33:44下载
- 积分:1
-
构造LR(1)分析程序,利用它进行语法分析,判断给出的符号串是否为该文法识别的句子,了解LR(K)分析方法是严格的从左向右扫描,和自底向上的语法分析方法。...
构造LR(1)分析程序,利用它进行语法分析,判断给出的符号串是否为该文法识别的句子,了解LR(K)分析方法是严格的从左向右扫描,和自底向上的语法分析方法。-tectonic LR (1) analysis procedure, and use it for syntax analysis, judgment, given the string of symbols to whether the sentence grammar recognition, understanding LR (K) analysis method is strict scan from left to right, and bottom-up syntax analysis.
- 2023-03-26 20:15:04下载
- 积分:1
-
A very useful procedure, c language written, for many school friends SCM may be...
一个非常有用的程序,c语言写得,对于很多学单片机的朋友或许有用。
-A very useful procedure, c language written, for many school friends SCM may be useful.
- 2022-03-20 22:04:32下载
- 积分: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
-
一个词法分析器的源程序
一个词法分析器的源程序- A morphology analyzer source program
- 2022-07-05 10:56:30下载
- 积分:1
-
c语言写的basic词法分析器
c语言写的basic词法分析器-c language writes basic morphology analyzer
- 2022-09-28 07:55:03下载
- 积分:1
-
编译原理词法,语法分析,能检查错误,pl/0,
编译原理词法,语法分析,能检查错误,pl/0,-Compilation Principle lexical, grammatical analysis, to check for errors, pl/0,
- 2023-01-25 20:50:03下载
- 积分:1
-
c实现的四元式,模拟编译原理来实现,程序本身没什么难度,不过写这种程序能进一步加深对编译原理的理解!...
c实现的四元式,模拟编译原理来实现,程序本身没什么难度,不过写这种程序能进一步加深对编译原理的理解!-c 4 yuan to achieve the style, analog compiler principles to achieve, the process itself little more difficult, but to write such a procedure would further deepen the understanding of compiler theory!
- 2022-09-28 09:45:03下载
- 积分:1
-
PL/0语法分析程序原代码(TURBOL PASCAL)
PL/0语法分析程序原代码(TURBOL PASCAL)-PL/0 grammar analysis program original code (TURBOL PASCAL)
- 2023-07-05 16:45:03下载
- 积分:1