2.3 - [lex.trigraph] - 【词法.三连符】

来源:互联网 发布:大眼仔软件 编辑:程序博客网 时间:2024/05/16 18:41
请不要转载本文;请不要以任何形式重新出版,发布本文;请在下载本文 24 小时内将其删除;禁止将本文用于商业目的。

2 Lexical conventions [lex]

2.3 Trigraph sequences [lex.trigraph]

 

2 词法约定 【词法】

2.3 三字符序列 【词法.三连符】

 

Before any other processing takes place, each occurrence of one of the following sequences of three characters ("trigraph sequence") is replaced by the single character indicated in Table 1.

Table 1 - trigraph sequences

trigraphreplacement
??=#
??//
??'^
??([
??)]
??!|
??<{
??>}
??-~

  

在任何其他处理发生之前,每个如下的三字符序列都被替换为表格 1 中指定的单个字符。

表格 1 - 三连符序列

三连符替换
??=#
??//
??'^
??([
??)]
??!|
??<{
??>}
??-~

  

[Example:
    ??=define arraycheck(a,b) a??(b??) ??!??! b??(a??)
becomes
    #define arraycheck(a,b) a[b] || b[a]
--end example]

 

例:
    ??=define arraycheck(a,b) a??(b??) ??!??! b??(a??)
成为
    #define arraycheck(a,b) a[b] || b[a]
--例完

 

No other trigraph sequence exists. Each ? that does not begin one of the trigraphs listed above is not changed.

 

不存在其他三连符。每个不是上述某个三连符开始的 ? 将保持不变。

 

PREV [lex.charset] | NEXT [lex.pptoken]上一页 【词法.字符集】 | 下一页 【词法.预处理标记】
原创粉丝点击