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

请不要转载本文;请不要以任何形式重新出版,发布本文;请在下载本文 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]上一页 【词法.字符集】 | 下一页 【词法.预处理标记】
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值