[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re: Flex/Bison 有多大用处?




将来会做什么修改。。。
from miui

在 2012-7-12 下午12:11,"Plain_Text" <resation@gmail.com>写道:


2012-07-12(Thursday) 10:23:33 +0800, Honghui Ding <ding_honghui@vobile.cn>:


> 这两个东西一般是用来辅助设计程序语言的。
>
> 其中 Flex 是用来分析词法,以 C 语言为例,譬如它看到 if 就知道这个是个关
> 键字,看到 int 也知道是关键字,看到数字 16 知道这是个数字。
>
> Bison 是用来分析语法的,所谓语法,学过汉语和英语的人应该能够知道,譬如主
> 谓宾这样的结构。还是以 C 语言为例,可以通过 Bison 定义结构去解析譬如 int
> i = 10; 这样的结构。
>



  您没仔细看主帖。我的意思是:为何开发者不将那些脚本文件转化成 C 源文
件,而是要求软件的使用者(编译人员)安装 Flex/Bison 去转换。唯一可能的解
释就是:转换后的源文件依赖于具体的编译环境,不能在开发阶段确定下来。

  如果真的如此,那么是哪些因素无法在开发期间确定下来?





--
To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] 20120712041136.GA2648@localhost.localdomain" target="_blank">http://lists.debian.org/[🔎] 20120712041136.GA2648@localhost.localdomain


Reply to: