BS ISO IEC 8652-2013 Information technology Programming languages Ada《信息技术 编程语言 Ada》.pdf
《BS ISO IEC 8652-2013 Information technology Programming languages Ada《信息技术 编程语言 Ada》.pdf》由会员分享,可在线阅读,更多相关《BS ISO IEC 8652-2013 Information technology Programming languages Ada《信息技术 编程语言 Ada》.pdf(858页珍藏版)》请在麦多课文档分享上搜索。
1、raising standards worldwide NO COPYING WITHOUT BSI PERMISSION EXCEPT AS PERMITTED BY COPYRIGHT LAW BSI Standards Publication BS ISO/IEC 8652:2012 Information technology Programming languages AdaBS ISO/IEC 8652:2012 BRITISH STANDARD National foreword This British Standard is the UK implementation of
2、ISO/IEC 8652:2012. It supersedes BS ISO/IEC 8652:1995 which is withdrawn. The UK participation in its preparation was entrusted to Technical Committee IST/5/-/9, Ada Panel. A list of organizations represented on this committee can be obtained on request to its secretary. This publication does not pu
3、rport to include all the necessary provisions of a contract. Users are responsible for its correct application. The British Standards Institution 2013. Published by BSI Standards Limited 2013 ISBN 978 0 580 79670 8 ICS 35.060 Compliance with a British Standard cannot confer immunity from legal oblig
4、ations. This British Standard was published under the authority of the Standards Policy and Strategy Committee on 31 May 2013. Amendments issued since publication Date Text affectedBS ISO/IEC 8652:2012Reference number ISO/IEC 8652:2012(E) ISO/IEC 2012INTERNATIONAL STANDARD ISO/IEC 8652 Third edition
5、 2012-12-15Information technology Programming languages Ada Technologies de linformation Langages de programmation Ada BS ISO/IEC 8652:2012 ISO/IEC 8652:2012(E) COPYRIGHT PROTECTED DOCUMENT ISO/IEC 2012 All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or
6、 utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from either ISO at the address below or ISOs member body in the country of the requester. ISO copyright office Case postale 56 CH-1211 Geneva 20 Tel. + 41 22 749 01 11
7、 Fax + 41 22 749 09 47 E-mail copyrightiso.org Web www.iso.org Published in Switzerland ii ISO/IEC 2012 All rights reservedISO/IEC 8652:2012(E) i ISO/IEC 2012 All rights reserved Table of Contents Table of Contents.i Foreword xi Introduction.xii 1 General .1 1.1 Scope 1 1.1.1 Extent 1 1.1.2 Structur
8、e. 2 1.1.3 Conformity of an Implementation with the Standard . 4 1.1.4 Method of Description and Syntax Notation. 5 1.1.5 Classification of Errors . 6 1.2 Normative References. 7 1.3 Terms and Definitions . 8 2 Lexical Elements9 2.1 Character Set . 9 2.2 Lexical Elements, Separators, and Delimiters
9、11 2.3 Identifiers 12 2.4 Numeric Literals. 13 2.4.1 Decimal Literals. 13 2.4.2 Based Literals 13 2.5 Character Literals 14 2.6 String Literals. 14 2.7 Comments 15 2.8 Pragmas 15 2.9 Reserved Words 17 3 Declarations and Types.19 3.1 Declarations . 19 3.2 Types and Subtypes 20 3.2.1 Type Declarations
10、 21 3.2.2 Subtype Declarations 23 3.2.3 Classification of Operations. 24 3.2.4 Subtype Predicates . 24 3.3 Objects and Named Numbers. 26 3.3.1 Object Declarations. 28 3.3.2 Number Declarations 31 3.4 Derived Types and Classes 31 3.4.1 Derivation Classes 34 3.5 Scalar Types. 35 3.5.1 Enumeration Type
11、s . 40 3.5.2 Character Types 41 3.5.3 Boolean Types . 42 3.5.4 Integer Types . 42 3.5.5 Operations of Discrete Types. 44 3.5.6 Real Types 45 3.5.7 Floating Point Types . 46 3.5.8 Operations of Floating Point Types. 48 3.5.9 Fixed Point Types 48 3.5.10 Operations of Fixed Point Types . 50 BS ISO/IEC
12、8652:2012ISO/IEC 8652:2012(E) ISO/IEC 2012 All rights reserved ii 3.6 Array Types.51 3.6.1 Index Constraints and Discrete Ranges 54 3.6.2 Operations of Array Types 55 3.6.3 String Types56 3.7 Discriminants56 3.7.1 Discriminant Constraints.59 3.7.2 Operations of Discriminated Types60 3.8 Record Types
13、60 3.8.1 Variant Parts and Discrete Choices62 3.9 Tagged Types and Type Extensions.64 3.9.1 Type Extensions.67 3.9.2 Dispatching Operations of Tagged Types .68 3.9.3 Abstract Types and Subprograms71 3.9.4 Interface Types.72 3.10 Access Types75 3.10.1 Incomplete Type Declarations 77 3.10.2 Operations
14、 of Access Types .79 3.11 Declarative Parts 85 3.11.1 Completions of Declarations.85 4 Names and Expressions .87 4.1 Names87 4.1.1 Indexed Components.88 4.1.2 Slices.89 4.1.3 Selected Components89 4.1.4 Attributes 91 4.1.5 User-Defined References.92 4.1.6 User-Defined Indexing .93 4.2 Literals.95 4.
15、3 Aggregates96 4.3.1 Record Aggregates 96 4.3.2 Extension Aggregates .98 4.3.3 Array Aggregates .99 4.4 Expressions 102 4.5 Operators and Expression Evaluation .103 4.5.1 Logical Operators and Short-circuit Control Forms .104 4.5.2 Relational Operators and Membership Tests 105 4.5.3 Binary Adding Op
16、erators.109 4.5.4 Unary Adding Operators110 4.5.5 Multiplying Operators 110 4.5.6 Highest Precedence Operators.112 4.5.7 Conditional Expressions .113 4.5.8 Quantified Expressions .114 4.6 Type Conversions 115 4.7 Qualified Expressions119 4.8 Allocators 120 4.9 Static Expressions and Static Subtypes
17、122 4.9.1 Statically Matching Constraints and Subtypes .125 5 Statements . 127 5.1 Simple and Compound Statements - Sequences of Statements .127 5.2 Assignment Statements.128 5.3 If Statements .129 5.4 Case Statements.130 BS ISO/IEC 8652:2012ISO/IEC 8652:2012(E) iii ISO/IEC 2012 All rights reserved
18、5.5 Loop Statements 131 5.5.1 User-Defined Iterator Types . 133 5.5.2 Generalized Loop Iteration . 134 5.6 Block Statements. 136 5.7 Exit Statements 137 5.8 Goto Statements 137 6 Subprograms139 6.1 Subprogram Declarations. 139 6.1.1 Preconditions and Postconditions 142 6.2 Formal Parameter Modes 144
19、 6.3 Subprogram Bodies 145 6.3.1 Conformance Rules. 146 6.3.2 Inline Expansion of Subprograms . 148 6.4 Subprogram Calls 148 6.4.1 Parameter Associations 150 6.5 Return Statements. 153 6.5.1 Nonreturning Procedures . 155 6.6 Overloading of Operators . 156 6.7 Null Procedures . 157 6.8 Expression Fun
20、ctions . 158 7 Packages 159 7.1 Package Specifications and Declarations. 159 7.2 Package Bodies . 160 7.3 Private Types and Private Extensions. 161 7.3.1 Private Operations. 163 7.3.2 Type Invariants 165 7.4 Deferred Constants . 167 7.5 Limited Types. 168 7.6 Assignment and Finalization 170 7.6.1 Co
21、mpletion and Finalization. 172 8 Visibility Rules .175 8.1 Declarative Region 175 8.2 Scope of Declarations . 176 8.3 Visibility 177 8.3.1 Overriding Indicators 179 8.4 Use Clauses . 180 8.5 Renaming Declarations. 181 8.5.1 Object Renaming Declarations 182 8.5.2 Exception Renaming Declarations 183 8
22、.5.3 Package Renaming Declarations . 183 8.5.4 Subprogram Renaming Declarations 184 8.5.5 Generic Renaming Declarations 186 8.6 The Context of Overload Resolution 186 9 Tasks and Synchronization.189 9.1 Task Units and Task Objects 189 9.2 Task Execution - Task Activation. 192 9.3 Task Dependence - T
23、ermination of Tasks. 193 9.4 Protected Units and Protected Objects . 194 9.5 Intertask Communication 197 9.5.1 Protected Subprograms and Protected Actions. 199 9.5.2 Entries and Accept Statements 200 BS ISO/IEC 8652:2012ISO/IEC 8652:2012(E) ISO/IEC 2012 All rights reserved iv 9.5.3 Entry Calls.203 9
24、.5.4 Requeue Statements205 9.6 Delay Statements, Duration, and Time .207 9.6.1 Formatting, Time Zones, and other operations for Time209 9.7 Select Statements.215 9.7.1 Selective Accept.215 9.7.2 Timed Entry Calls .217 9.7.3 Conditional Entry Calls218 9.7.4 Asynchronous Transfer of Control.219 9.8 Ab
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- BSISOIEC86522013INFORMATIONTECHNOLOGYPROGRAMMINGLANGUAGESADA 信息技术 编程 语言 ADAPDF

链接地址:http://www.mydoc123.com/p-396888.html