预处理器只是一个通行证 [英] The preprocessor is just a pass

查看:70
本文介绍了预处理器只是一个通行证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否准确地说预处理器只是解析源文件中的



我回复了那个评论说,预处理器不仅仅是一个

通行证。它处理编译器不处理的语句。 alt.comp.lang.learn.c-c ++新闻组中好的

人坚持认为

预处理器只是众多传递之一。预处理器处理预处理器独有的

语法,只有那个语法。


讨论时间:


实际上预处理器是什么?
http://groups.google.com/group/alt.c...1df10e2b29fbc2

Is it accurate to say that "the preprocessor is just a pass in the parsing
of the source file"?

I responded to that comment by saying that the preprocessor is not just a
pass. It processes statements that the compiler does not process. The good
people in the alt.comp.lang.learn.c-c++ newsgroup insist that the
preprocessor is just one of many passes. The preprocessor processes a
grammer unique to the preprocessor and only that grammer.

The discussion is at:

What in fact is the preprocessor?
http://groups.google.com/group/alt.c...1df10e2b29fbc2

推荐答案

Sam of California写道:
Sam of California wrote:

是否准确地说预处理器只是解析中的一个过程

源文件?


我回复了那条评论,说预处理器不仅仅是一个

通行证。它处理编译器不处理的语句。 alt.comp.lang.learn.c-c ++新闻组中好的

人坚持认为

预处理器只是众多传递之一。预处理器处理预处理器独有的

语法,只有那个语法。


讨论时间:


实际上预处理器是什么?
http://groups.google.com/group/alt.c...1df10e2b29fbc2

Is it accurate to say that "the preprocessor is just a pass in the parsing
of the source file"?

I responded to that comment by saying that the preprocessor is not just a
pass. It processes statements that the compiler does not process. The good
people in the alt.comp.lang.learn.c-c++ newsgroup insist that the
preprocessor is just one of many passes. The preprocessor processes a
grammer unique to the preprocessor and only that grammer.

The discussion is at:

What in fact is the preprocessor?
http://groups.google.com/group/alt.c...1df10e2b29fbc2



我不明白的是你的陈述


"预处理器不仅仅是一个通行证。它处理

编译器不处理的语句。语言非常清楚,

预处理器的语句与编译器完全不同。


第二句是真的,第三句是真的。我不知道
了解第一句如何跟随。


就我而言,预处理器只是一个通行证。通过''只是一个

传递''我的意思是预处理器可以完全与

其他阶段(或传递)分开进行并跟随它,即输出

每次传递都是其后一次传递的输入。也许你有'b $ ba'的不同定义''只是一个通行证''。


john

What I don''t understand is your statement

"The preprocessor is not just a pass. It processes statements that the
compiler does not process. The language is very clear that the
preprocessor''s statements are totally different from the compiler."

The second sentence is true, the third sentence is true. I don''t
understand how the first sentence follows.

The preprocessor is just a pass, as far as I am concerned. By ''just a
pass'' I mean that the preprocessor can be totally seperated from the
other phases (or passes) that proceed and follow it, i.e. the output of
each pass is the input to the next pass that follows it. Maybe you have
a different definition of ''just a pass''.

john


约翰哈里森 < jo ************* @ hotmail.comwrote in message

新闻:Ek ***************** @ newsfe7-gui.ntli.net ...
"John Harrison" <jo*************@hotmail.comwrote in message
news:Ek*****************@newsfe7-gui.ntli.net...

>

"预处理器不只是一个传递。它处理

编译器不处理的语句。语言非常清楚,

预处理器的语句与编译器完全不同。


第二句是真的,第三句是真的。我不会理解第一句话是怎么回事。
>
"The preprocessor is not just a pass. It processes statements that the
compiler does not process. The language is very clear that the
preprocessor''s statements are totally different from the compiler."

The second sentence is true, the third sentence is true. I don''t
understand how the first sentence follows.



当然第一句话含糊不清。它可以通过多种方式进行解释。我用b $ b来澄清后面句子的第一句话。

Of course the first sentence is vague. It can be interpreted in many ways. I
clarify the first sentence with the subsequent sentences.


Sam of California写道:
Sam of California wrote:

" John Harrison" < jo ************* @ hotmail.comwrote in message

新闻:Ek ***************** @ newsfe7-gui.ntli.net ...
"John Harrison" <jo*************@hotmail.comwrote in message
news:Ek*****************@newsfe7-gui.ntli.net...

>"预处理器不只是一个传递。它处理
编译器不处理的语句。语言非常清楚,
预处理器的语句与编译器完全不同。

第二句是真的,第三句是真的。我不明白第一句话是怎么回事。
>"The preprocessor is not just a pass. It processes statements that the
compiler does not process. The language is very clear that the
preprocessor''s statements are totally different from the compiler."

The second sentence is true, the third sentence is true. I don''t
understand how the first sentence follows.



当然第一句话含糊不清。它可以通过多种方式进行解释。我

用后面的句子澄清第一句话。


Of course the first sentence is vague. It can be interpreted in many ways. I
clarify the first sentence with the subsequent sentences.



好​​吧,在我看来你是在定义''a以某种方式传递''。并且

由于您定义''通行证'的方式'确实

预处理不仅仅是一个通行证。

毫无疑问,那些不同意你的人(包括我在内)以不同的方式定义了通行证,所以他们也是对的。


这种关于定义的论证非常无聊,所以我不会再接受任何进一步的参与,除非你有实质性的要点。

我没看到的那一刻。


john

Well it seems to me that you are defining ''a pass'' in a certain way. And
as a consequence of the way you have defined ''a pass'' it is true that
preprocessing is not just a pass.

No doubt those who disagreed with you (me included) defined ''a pass'' in
a different way, so they are right as well.

This kind of argument about definitions is very boring, so I''m not
taking any further part, unless you have a substantive point to make. At
the moment I don''t see it.

john


这篇关于预处理器只是一个通行证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆