2 - [lex] - 【词法】

请不要转载本文;请不要以任何形式重新出版,发布本文;请在下载本文 24 小时内将其删除;禁止将本文用于商业目的。

2 Lexical conventions [lex]

 

2 词法约定 【词法】

 

The text of the program is kept in units called source files in this International Standard. A source file together with all the headers (17.4.1.2) and source files included (16.2) via the preprocessing directive #include, less any source lines skipped by any of the conditional inclusion (16.1) preprocessing directives, is called a translation unit. [Note: a C++ program need not all be translated at the same time. ]

 

程序的文本是以本国际标准中称为源文件的单元保存的。一个源文件与其通过预处理指令 #include 包含(16.2)的头文件(17.4.1.2)和源文件合起来,排除通过条件包含(16.1)预处理指令忽略的源文本行后,被称为翻译单元。【注:C++ 程序并不需要同时全部被翻译。】

 

[Note: previously translated translation units and instantiation units can be preserved individually or in libraries. The separate translation units of a program communicate (3.5) by (for example) calls to functions whose identifiers have external linkage, manipulation of objects whose identifiers have external linkage, or manipulation of data files. Translation units can be separately translated and then later linked to produce an executable program. (3.5). ]

 

注:已经过翻译的翻译单元合实例化单元可以独自或在库中保存。 一个程序中分开的翻译单元之间,通过(例如)对具有外部连接标识符的函数的调用,操作具有外部连接标识符的对象,或操作数据文件进行互相通信(3.5)。翻译单元可以先分别翻译,然后再连接成可执行程序。】

 

2.1 Phases of translation [lex.phases]
 
2.1 翻译的阶段 【词法.阶段】
 
2.2 Character sets [lex.charset]
 
2.2 字符集 【词法.字符集】
 
2.3 Trigraph sequences [intro.ack]
 
2.3 三字符序列 【词法.三连符】
 
2.4 Preprocessing tokens [lex.pptoken]
 
2.4 预处理标记 【词法.预处理标记】
 
2.5 Alternative tokens [lex.digraph]
 
2.5 候选标记 【词法.双连符】
 
2.6 Tokens [lex.token]
 
2.6 标记 【词法.标记】
 
2.7 Comments [lex.comment]
 
2.7 注释 【词法.注释】
 
2.8 Header names [lex.header]
 
2.8 头名称 【词法.头】
 
2.9 Preprocessing numbers [lex.ppnumber]
 
2.9 预处理数字 【词法.预处理数字】
 
2.10 Identifiers [lex.name]
 
2.10 标识符 【词法.名字】
 
2.11 Keywords [lex.key]
 
2.11 关键字 【词法.关键字】
 
2.12 Operators and punctuators [lex.operators]
 
2.12 运算符和标点 【词法.运算符】
 
2.13 Literals [lex.literal]
 
2.13 文字量 【词法.文字量】
 
PREV [intro.ack] | NEXT [lex.phases]上一页 【总则.鸣谢】 | 下一页 【词法.阶段】
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值