令牌 [英] tokens
问题描述
大家好,
从第125页开始,我就会遇到这个问题。
令牌是否属实?在C(philisophically)中,数字/字符/下划线/ * s(以及我没有想到的其他非空格)编译器的数量最少
用于获取可用的
信息。所以,这将是一个象征
" ()
但这个
"("
本身会不是吗?
像往常一样感谢。
On Sun,2008年8月10日16:20:02 -0700,mdh写道:
大家好,
从第125页开始,这个问题引起了我的兴趣。
C中的令牌(philisophically)是否为数字/字符/下划线/ * s(以及其他非空格)的最小金额是真的吗?有没有想到)编译器使用它来获取可用信息。
在某种程度上。
所以,这将是一个代币
"()"
如果你的意思是包括引号,然后是。否则,不。
但这个
"("
本身不会?
所以,不。令牌是一个单词。令牌是最大的字符串
,不能将空格插入而不会将其分成较小的
令牌,从而改变其含义。 ()不是令牌。这是两个令牌,你可以通过写()来分辨两个令牌。
如果是一个令牌,这不会是允许。 ""是一个令牌,
,因为你不能通过写"来分隔引号。 " - 至少
并没有改变它的含义。
像往常一样感谢。
8月10日下午4:40,Harald van D?| k< true ... @ gmail.comwrote:
< blockquote class =post_quotes>
On Sun,2008年8月10日16:20:02 -0700,mdh写道:
...... a令牌在C(philisophically)是最少的数字
的数字/字符/下划线/ * s(以及我没有想到的其他非空格
)编译器用于获取可用信息。
......令牌是一个单词。令牌是最大的字符串..........
改变其含义。
所以,
(
是一个令牌,因为它有一些对编译器有意义....再获得一些
个字符,看看是否有另一个字符,如果没有,则有一个
错误等等?或发现第二个)所以逗号描述的列表是
参数等等。
这就是为什么我的()的例子不是单个标记,因为第一个(>
可能是许多不同事物的开始?
On Sun,2008年8月10日17:01:18 -0700,mdh写道:
这就是为什么我的()的例子不是单个标记,因为第一个(
可能是许多不同事物的开始?
不,您的()示例不是单个令牌,因为这两个可以分开
。
Hi all,
From p 125, gives rise to this issue for me.
Is it true that a "token" in C ( philisophically ) is the least amount
of digits/chars/underscores/*s ( and other non blank space that I
have not thought of) that the compiler uses to derive useable
information. So, this would be a token
" ( ) "
but this
"( "
by itself would not?
Thanks as usual.
On Sun, 10 Aug 2008 16:20:02 -0700, mdh wrote:Hi all,
From p 125, gives rise to this issue for me.
Is it true that a "token" in C ( philisophically ) is the least amount
of digits/chars/underscores/*s ( and other non blank space that I have
not thought of) that the compiler uses to derive useable information.In a way.
So, this would be a token
" ( ) "If you mean including the quotation marks, then yes. Otherwise, no.
but this
"( "
by itself would not?So, no. A token is a word. A token is the largest string of characters
that cannot have whitespace inserted without breaking it into smaller
tokens, changing its meaning. () is not a token. It is two tokens, which
you can tell from the fact that you can separate the two by writing ( ).
If it were a single token, this would not be allowed. "" is a token,
because you cannot separate the quotation marks by writing " " -- at least
not without changing its meaning.
Thanks as usual.
On Aug 10, 4:40 pm, Harald van D?|k <true...@gmail.comwrote:On Sun, 10 Aug 2008 16:20:02 -0700, mdh wrote:
...... a "token" in C ( philisophically ) is the least amount
of digits/chars/underscores/*s ( and other non blank space that I have
not thought of) that the compiler uses to derive useable information.
...... A token is a word. A token is the largest string of characters..........
changing its meaning.So,
(
is a token as it has some meaning to the compiler.... "get some more
characters, see if followed by another ) and if not, there is an
error" etc? or " found second ) so comma delineated list are
arguments" etc.
Is that why my example of ( ) is not a single token as the first "("
could be the start of a lot of different things?
On Sun, 10 Aug 2008 17:01:18 -0700, mdh wrote:Is that why my example of ( ) is not a single token as the first "("
could be the start of a lot of different things?No, your example of ( ) is not a single token because the two can be
separated.
这篇关于令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!