标题:大家有没有对编译/解释程序很感兴趣的啊
只看楼主
lingluoz
Rank: 2
来 自:苏州科技学院
等 级:新手上路
威 望:4
帖 子:749
专家分:0
注 册:2008-2-2
得分:0 
电子书我也有。。可惜看上去眼睛受不了啊。

Murphy's Law :
If there are two or more ways to do something, and one of those ways can result in a catastrophe, then someone will do it.
2008-06-13 23:09
StarWing83
Rank: 8Rank: 8
来 自:仙女座大星云
等 级:贵宾
威 望:19
帖 子:3951
专家分:748
注 册:2007-11-16
得分:0 
考虑一下:流程控制用LR应该会很简单……
表达式单独抽出来算符优先得了……反正手上有现成代码……
词法分析用C++的stringstream……
合起来,应该不会很难吧……

专心编程………
飞燕算法初级群:3996098
我的Blog
2008-06-14 04:22
lingluoz
Rank: 2
来 自:苏州科技学院
等 级:新手上路
威 望:4
帖 子:749
专家分:0
注 册:2008-2-2
得分:0 
问一个很弱智的问题。。为什么中间代码一定要以树的形式出现呢。。不可以是线型的吗。

Murphy's Law :
If there are two or more ways to do something, and one of those ways can result in a catastrophe, then someone will do it.
2008-06-15 22:56
lingluoz
Rank: 2
来 自:苏州科技学院
等 级:新手上路
威 望:4
帖 子:749
专家分:0
注 册:2008-2-2
得分:0 
树型结构有什么优点吗。。

Murphy's Law :
If there are two or more ways to do something, and one of those ways can result in a catastrophe, then someone will do it.
2008-06-15 23:04
StarWing83
Rank: 8Rank: 8
来 自:仙女座大星云
等 级:贵宾
威 望:19
帖 子:3951
专家分:748
注 册:2007-11-16
得分:0 
话说,中间代码根本就是线形的嘛……比如四元式…………

专心编程………
飞燕算法初级群:3996098
我的Blog
2008-06-16 04:22
liyingxzy
该用户已被删除
得分:0 
提示: 作者被禁止或删除 内容自动屏蔽
2008-06-16 08:57
lingluoz
Rank: 2
来 自:苏州科技学院
等 级:新手上路
威 望:4
帖 子:749
专家分:0
注 册:2008-2-2
得分:0 
如果把这个翻译成汇编指令的话。这个就叫编译了。。不叫解释了。

Murphy's Law :
If there are two or more ways to do something, and one of those ways can result in a catastrophe, then someone will do it.
2008-06-16 09:56
flyue
Rank: 10Rank: 10Rank: 10
来 自:江南西道
等 级:贵宾
威 望:19
帖 子:3465
专家分:1563
注 册:2006-6-20
得分:0 
恩,我喜欢编译!解释有什么好的啊?这么慢

天之道,损有余而补不足.人之道则不然,损不足以奉有余.孰能有余以奉天下,唯有道者.
2008-06-16 14:08
lingluoz
Rank: 2
来 自:苏州科技学院
等 级:新手上路
威 望:4
帖 子:749
专家分:0
注 册:2008-2-2
得分:0 
因为解释简单啊。而且跨平台。。

Murphy's Law :
If there are two or more ways to do something, and one of those ways can result in a catastrophe, then someone will do it.
2008-06-16 18:52
huangchao88888
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2008-6-16
得分:0 
恩是呀
2008-06-16 20:08



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-218702-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.213812 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved