答案家

 找回密码
 立即注册
查看: 8289|回复: 15

编译原理龙书课后部分答案(英文版)

[复制链接]

1万

主题

1万

帖子

80万

积分

校长

Rank: 9Rank: 9Rank: 9

积分
809132
发表于 2016-10-26 18:18:22 | 显示全部楼层 |阅读模式
1) What is the difference between a compiler and an interpreter?
A compiler is a program that can read a program in one language - the source language - and translate it into an equivalent program in another language – the target language and report any errors in the source program that it detects during the translation process.
Interpreter directly executes the operations specified in the source program on inputs supplied by the user.
2) What are the advantages of: (a) a compiler over an interpreter
a. The machine-language target program produced by a compiler is usually much faster than an interpreter at mapping inputs to outputs.  
(b) an interpreter over a compiler?
b. An interpreter can usually give better error diagnostics than a compiler, because it executes the source program statement by statement.  
3) What advantages are there to a language-processing system in which the compiler produces assembly language rather than machine language?
The compiler may produce an assembly-language program as its output, because assembly language is easier to produce as output and is easier to debug.   
4.2.3 Design grammars for the following languages:
a) The set of all strings of 0s and 1s such that every 0 is immediately followed by at least 1. S -> SS | 1 | 01 |    
4.3.1 The following is a grammar for the regular expressions over symbols a and b only, using + in place of | for unions, to avoid conflict with the use of vertical bar as meta-symbol in grammars:

游客,如果您要查看本帖隐藏内容请回复
回帖码请关注我们的公众号获取。

请在电脑访问我们的网站下载答案,手机下载可能会造成答案不正常显示!QQ群627816650公告有详细步骤。

该答案由网友整理提供,如果答案不符请扫描关注我们的公众号反馈给我们。

0

主题

2

帖子

34

积分

幼儿园

Rank: 1

积分
34
发表于 2019-3-21 11:14:02 | 显示全部楼层
牛啊不阿瑟东马上

0

主题

2

帖子

34

积分

幼儿园

Rank: 1

积分
34
发表于 2019-10-9 18:07:27 | 显示全部楼层
想看。。。。。。。。。。。。。。。。。。。。。。。

0

主题

1

帖子

25

积分

幼儿园

Rank: 1

积分
25
发表于 2019-10-11 20:25:39 | 显示全部楼层
完整版的吗

0

主题

2

帖子

36

积分

幼儿园

Rank: 1

积分
36
发表于 2019-10-12 11:07:20 | 显示全部楼层
。。。。。。。。。。。。。。

0

主题

2

帖子

36

积分

幼儿园

Rank: 1

积分
36
发表于 2019-10-12 11:07:57 | 显示全部楼层
。。。。。。。。。。。。。

0

主题

2

帖子

34

积分

幼儿园

Rank: 1

积分
34
发表于 2019-10-14 22:37:50 | 显示全部楼层
想看答案谢谢

0

主题

3

帖子

61

积分

幼儿园

Rank: 1

积分
61
发表于 2019-10-16 15:45:56 | 显示全部楼层
。。。。。。。。。。。。。。。。。。。

0

主题

2

帖子

34

积分

幼儿园

Rank: 1

积分
34
发表于 2019-10-21 15:17:14 | 显示全部楼层
hhhhhhhhhhhhhhhhhhhh

0

主题

5

帖子

193

积分

小学生

Rank: 2

积分
193
发表于 2019-10-30 19:43:55 | 显示全部楼层
12345678910
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

CopyRight(c)2016 www.daanjia.com All Rights Reserved. 本站部份资源由网友发布上传提供,如果侵犯了您的版权,请来信告知,我们将在5个工作日内处理。
快速回复 返回顶部 返回列表